Re: [PHP-DEV] ENT_ALL or similar option for htmlspecialchars[_decode]?

2013-06-27 Thread Yasuo Ohgaki
2013/6/27 Kris Craig > I just noticed that htmlspecialchars_decode doesn't convert entities like > and . > I think htmlspecialchars_decode() only decodes ext/standard/html_tables.h static const entity_stage3_row stage3_table_be_apos_0[] = { {0, { {NULL, 0} } }, {0, { {NULL, 0} } }, {0,

[PHP-DEV] phar command man page

2013-06-27 Thread Remi Collet
Hi, See https://bugs.php.net/bug.php?id=65142 I've created a man page for phar. Please have a quick look. If no disagreement, I plan to commit this file in 5.4 Remi. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] phar command man page

2013-06-27 Thread Remi Collet
Also https://bugs.php.net/bug.php?id=65143 for php-cgi. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-27 Thread Tjerk Anne Meesters
On Wed, Jun 26, 2013 at 11:20 PM, Jeremy Curcio wrote: > Hello, > > I would like to submit an RFC to add a new function to the PHP language. > The function would be called "map()". The purpose of this function would be > to take an existing value within a range and make it to a corresponding > lo

[PHP-DEV] I want to work against Bug 44522 - Upload limit 2G

2013-06-27 Thread Ralf Lang
Hi, I want to deal with Bug 44522 which disallows uploads > 2G https://bugs.php.net/bug.php?id=44522&edit=1 Today with PHP cloud solutions, we are running into more situations where this really hurts. Before I begin providing a github patch (as I have no php svn access and I don't think it's nee

Re: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-27 Thread Florin Patan
On Thu, Jun 27, 2013 at 10:17 AM, Tjerk Anne Meesters wrote: > On Wed, Jun 26, 2013 at 11:20 PM, Jeremy Curcio wrote: > >> Hello, >> >> I would like to submit an RFC to add a new function to the PHP language. >> The function would be called "map()". The purpose of this function would be >> to tak

Re: [PHP-DEV] ENT_ALL or similar option for htmlspecialchars[_decode]?

2013-06-27 Thread Kris Craig
On Thu, Jun 27, 2013 at 12:03 AM, Yasuo Ohgaki wrote: > > 2013/6/27 Kris Craig > >> I just noticed that htmlspecialchars_decode doesn't convert entities like >> and . >> > > I think htmlspecialchars_decode() only decodes > > ext/standard/html_tables.h > static const entity_stage3_row stage3_t

Re: [PHP-DEV] Session Id Collisions

2013-06-27 Thread Arpad Ray
On Thu, Jun 27, 2013 at 1:36 AM, Yasuo Ohgaki wrote: > Hi, > > Sorry for the long delay, I've sent pull requests > > https://github.com/php/php-src/pull/368 > https://github.com/php/php-src/pull/367 > https://github.com/php/php-src/pull/366 > > Hi, I see the strict mode check is now implemented

Re: [PHP-DEV] RFC Proposal: New assign value operator

2013-06-27 Thread Tom Oram
Hi Richard, Thanks for your reply, the main reason would be operator overloading rather than the typecasting example, the typecasting version is more for consistency. I am also fairly that there might be situations where it would be useful to set the value of a scalar while preserving the time and

Re: [PHP-DEV] RFC Proposal: New assign value operator

2013-06-27 Thread Peter Lind
On 27 June 2013 11:04, Tom Oram wrote: > Hi Richard, > > Thanks for your reply, the main reason would be operator overloading rather > than the typecasting example, the typecasting version is more for > consistency. I am also fairly that there might be situations where it would > be useful to set

Re: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-27 Thread Tjerk Anne Meesters
On Thu, Jun 27, 2013 at 4:27 PM, Florin Patan wrote: > On Thu, Jun 27, 2013 at 10:17 AM, Tjerk Anne Meesters > wrote: > > On Wed, Jun 26, 2013 at 11:20 PM, Jeremy Curcio > wrote: > > > >> Hello, > >> > >> I would like to submit an RFC to add a new function to the PHP language. > >> The function

Re: [PHP-DEV] UNKNOW:0, what is it?

2013-06-27 Thread Ivan Enderlin @ Hoa
On 27/06/13 06:40, Laruence wrote: thanks for the report, fixed in https://github.com/php/php-src/commit/fa8611c81ee72839cdff3e72b18cc586feb4aa29 thanks Thank you! But it seems that it is a regression because I didn't have this bug before. How can I fix this in my code? Any idea? Cheers. --

Re: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-27 Thread Sebastian Krebs
2013/6/27 Tjerk Anne Meesters > On Thu, Jun 27, 2013 at 4:27 PM, Florin Patan > wrote: > > > On Thu, Jun 27, 2013 at 10:17 AM, Tjerk Anne Meesters > > wrote: > > > On Wed, Jun 26, 2013 at 11:20 PM, Jeremy Curcio > > wrote: > > > > > >> Hello, > > >> > > >> I would like to submit an RFC to add

Re: [PHP-DEV] UNKNOW:0, what is it?

2013-06-27 Thread Julien Pauli
On Thu, Jun 27, 2013 at 11:31 AM, Ivan Enderlin @ Hoa < ivan.ender...@hoa-project.net> wrote: > > On 27/06/13 06:40, Laruence wrote: > >> >> thanks for the report, fixed in >> https://github.com/php/php-**src/commit/**fa8611c81ee72839cdff3e72b18cc5* >> *86feb4aa29

Re: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-27 Thread Tjerk Anne Meesters
On Thu, Jun 27, 2013 at 5:43 PM, Sebastian Krebs wrote: > > > > 2013/6/27 Tjerk Anne Meesters > >> On Thu, Jun 27, 2013 at 4:27 PM, Florin Patan >> wrote: >> >> > On Thu, Jun 27, 2013 at 10:17 AM, Tjerk Anne Meesters > > >> > wrote: >> > > On Wed, Jun 26, 2013 at 11:20 PM, Jeremy Curcio >> > wr

[PHP-DEV] session.name limitation fix or not fix?

2013-06-27 Thread Yasuo Ohgaki
Hi all, I was browsing bugs and found old feature request that can be fixed easily. Request #35703 when session_name("123") consist only digits, should warning https://bugs.php.net/bug.php?id=35703&thanks=1 session.name cannot be integer like string, since it will be initialized as "long" key ha

Re: [PHP-DEV] Session Id Collisions

2013-06-27 Thread Yasuo Ohgaki
Hi Arpad, 2013/6/27 Arpad Ray > I see the strict mode check is now implemented in the handlers and not > session.c, presumably to keep ABI, but this means code is duplicated and > the setting only actually works if the handler supports it. It's > unfortunate timing since 5.5 has just gone, but I

[PHP-DEV] VCS Account Request: kaplan

2013-06-27 Thread Lior Kaplan
Helping with merging patches and pull requests -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Cherry picking #60560 for php 5.4

2013-06-27 Thread Lior Kaplan
Hi, Bug #60560 was fixed in trunk while PHP 5.4 was in its RC phases. The fix was never merged back to the 5.4 branch, meaning it's only avaailable on the 5.5 release. Could we cherry pick it for the 5.4 branch ? The relevant commit is http://git.php.net/?p=php-src.git;a=commit;h=37272e46def5673

RE: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-27 Thread Richard Bradley
> -Original Message- > From: tjerk.meest...@gmail.com [mailto:tjerk.meest...@gmail.com] On Behalf Of > Tjerk Anne Meesters > Sent: 27 June 2013 11:24 > To: Sebastian Krebs > Cc: Florin Patan; Jeremy Curcio; PHP Internals > Subject: Re: [PHP-DEV] Gauging Interest:RFC to add map() function >

Re: [PHP-DEV] Re: hex2bin: E_WARNING is too much for odd string?

2013-06-27 Thread Tjerk Meesters
Sent from my iPhone On 27 Jun, 2013, at 11:05 AM, Yasuo Ohgaki wrote: > Hi Sherif, > > I would like to have consistent behavior at least within a function. > > 2013/6/27 Sherif Ramadan > >> I thought you wanted to add an extra error for malformed hex, which I >> would have been fine with,

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread Bernhard Schussek
Hi Anthony, I really like the idea. But I'd prefer the following syntax: public function __construct(~HttpKernelInterfaceForClientIp $parent) { $this->parent = $parent; } Reasons: * A passed object does not have to explicitly implement the interface, but only implicitly ("practi

Re: [PHP-DEV] Request for comments - new PHP feature: return typing

2013-06-27 Thread Richard Quadling
Hi. At the moment we can type hint array, classes, interfaces, callable, etc. As PHP is loosely typed and has type juggling thinking of (or at least trying to get PHP to enforce) a particular type (string, int, float, boolean) would be the wrong way to go - too many different behaviours (block if

[PHP-DEV] Bug 52355

2013-06-27 Thread Florin Patan
Hello, I'd like to start working on a bug, https://bugs.php.net/bug.php?id=52355 but I'm not sure where to start investigating exactly. I've compared the 5.2.2 and 5.2.3 changes and there's nothing that jumps into my eyes. Could I get some pointers on how to start working on debugging this and ho

Re: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-27 Thread Tjerk Anne Meesters
On Thu, Jun 27, 2013 at 7:13 PM, Richard Bradley < richard.brad...@softwire.com> wrote: > > -Original Message- > > From: tjerk.meest...@gmail.com [mailto:tjerk.meest...@gmail.com] On > Behalf Of Tjerk Anne Meesters > > Sent: 27 June 2013 11:24 > > To: Sebastian Krebs > > Cc: Florin Patan;

Re: [PHP-DEV] Bug 52355

2013-06-27 Thread Tjerk Anne Meesters
On Thu, Jun 27, 2013 at 8:42 PM, Florin Patan wrote: > Hello, > > > I'd like to start working on a bug, > https://bugs.php.net/bug.php?id=52355 but I'm not sure where to start > investigating exactly. > First of all, the effort is much appreciated :) I've run a small test case and it seems the

[PHP-DEV] New syntax for multidimensional array loop with foreach

2013-06-27 Thread Christian Stoller
Hi internals, during my current work I had an idea for shorter array iteration with foreach. I haven’t seen such a syntax until now, but I think it is easy to understand ;-) Maybe you know the case where you have to iterate over all values of a 2D (or more) array: $count = 0; foreach ($array a

Re: [PHP-DEV] New syntax for multidimensional array loop with foreach

2013-06-27 Thread Florin Patan
On Thu, Jun 27, 2013 at 4:10 PM, Christian Stoller wrote: > Hi internals, > > during my current work I had an idea for shorter array iteration with > foreach. I haven’t seen such a syntax until now, but I think it is easy to > understand ;-) > > Maybe you know the case where you have to iterate

Re: [PHP-DEV] New syntax for multidimensional array loop with foreach

2013-06-27 Thread Kingsquare.nl - Robin Speekenbrink
I'd thought this would have been `solved` by allowing the list statement in foreach ( http://nl3.php.net/manual/en/control-structures.foreach.php#control-structures.foreach.list ) Doesnt that solve your problem already? Kind regards, Robin Speekenbrink 2013/6/27 Florin Patan > On Thu, Jun 27

Re: [PHP-DEV] New syntax for multidimensional array loop with foreach

2013-06-27 Thread Sebastian Krebs
2013/6/27 Kingsquare.nl - Robin Speekenbrink > I'd thought this would have been `solved` by allowing the list statement in > foreach ( > > http://nl3.php.net/manual/en/control-structures.foreach.php#control-structures.foreach.list > ) > > Doesnt that solve your problem already? > This is only us

Re: [PHP-DEV] New syntax for multidimensional array loop with foreach

2013-06-27 Thread Sebastian Krebs
2013/6/27 Florin Patan > On Thu, Jun 27, 2013 at 4:10 PM, Christian Stoller > wrote: > > Hi internals, > > > > during my current work I had an idea for shorter array iteration with > foreach. I haven’t seen such a syntax until now, but I think it is easy to > understand ;-) > > > > Maybe you kno

Re: [PHP-DEV] New syntax for multidimensional array loop with foreach

2013-06-27 Thread Ralf Lang
On 27.06.2013 16:10, Christian Stoller wrote: > Hi internals, > > during my current work I had an idea for shorter array iteration with > foreach. I haven’t seen such a syntax until now, but I think it is easy to > understand ;-) > > Maybe you know the case where you have to iterate over all va

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread Anthony Ferrara
Stas et al, So, the question of what is the difference between the two errors > remains unanswered. If the whole diff is that one of the errors has word > "recoverable" in the message, it's not substantial difference at all and > one that does not require new syntax and big change in the language

Re: [PHP-DEV] New syntax for multidimensional array loop with foreach

2013-06-27 Thread Yahav Gindi Bar
On Thu, Jun 27, 2013 at 5:27 PM, Ralf Lang wrote: > On 27.06.2013 16:10, Christian Stoller wrote: > > Hi internals, > > > > during my current work I had an idea for shorter array iteration with > foreach. I haven’t seen such a syntax until now, but I think it is easy to > understand ;-) > > > > M

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread Laruence
On Thu, Jun 27, 2013 at 10:35 PM, Anthony Ferrara wrote: > Stas et al, > > > So, the question of what is the difference between the two errors >> remains unanswered. If the whole diff is that one of the errors has word >> "recoverable" in the message, it's not substantial difference at all and >>

Re: [PHP-DEV] New syntax for multidimensional array loop with foreach

2013-06-27 Thread Nikita Popov
On Thu, Jun 27, 2013 at 4:10 PM, Christian Stoller wrote: > The new syntax could make it shorter and faster to write... but maybe it's > a bit too confusing? > > $count = 0; > foreach ($array as $key => $innerArray as $innerKey => $value) { > $count += $value; > // and do something with $k

RE: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread jbo...@openmv.com
>I agree the use-cases are slightly weak. This is a draft RFC. It's supposed to >help identify > the areas where we can improve it. Help identify use-cases. Help dig it out. I think Ralph has the right idea: register_compatible_types($yourType, $myType); A better name might be (only for interfa

Re: [PHP-DEV] Bug 52355

2013-06-27 Thread Nikita Popov
On Thu, Jun 27, 2013 at 2:42 PM, Florin Patan wrote: > Hello, > > > I'd like to start working on a bug, > https://bugs.php.net/bug.php?id=52355 but I'm not sure where to start > investigating exactly. > I've compared the 5.2.2 and 5.2.3 changes and there's nothing that > jumps into my eyes. > Cou

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread Laruence
On Thu, Jun 27, 2013 at 10:54 PM, Laruence wrote: > On Thu, Jun 27, 2013 at 10:35 PM, Anthony Ferrara wrote: >> Stas et al, >> >> >> So, the question of what is the difference between the two errors >>> remains unanswered. If the whole diff is that one of the errors has word >>> "recoverable" in

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread Anthony Ferrara
Laruence, I missed one thing here, it should be: > why we need such feature that only a few people need it, and will > also make reset people confused, and most of other language doesn't > have it, and using it will make things a little mess(and low > performance vs pure interface)? > I've prov

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread James Gilliland
wow... why did this just become a measuring contest. Do we need to go recruit people interested and attach their resume's? I'll just toss in I am interested in this. Comparing to current methods of doing this sort of things(because if you're denying it exists in the wild, lets open up some of your

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread Sebastian Krebs
2013/6/27 Anthony Ferrara > Stas et al, > > > So, the question of what is the difference between the two errors > > remains unanswered. If the whole diff is that one of the errors has word > > "recoverable" in the message, it's not substantial difference at all and > > one that does not require n

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread Laruence
On Thu, Jun 27, 2013 at 11:25 PM, Anthony Ferrara wrote: > Laruence, > >> I missed one thing here, it should be: >> why we need such feature that only a few people need it, and will >> also make reset people confused, and most of other language doesn't >> have it, and using it will make things a

Re: [PHP-DEV] UNKNOW:0, what is it?

2013-06-27 Thread Laruence
On Thu, Jun 27, 2013 at 6:15 PM, Julien Pauli wrote: > On Thu, Jun 27, 2013 at 11:31 AM, Ivan Enderlin @ Hoa > wrote: >> >> >> On 27/06/13 06:40, Laruence wrote: >>> >>> >>> thanks for the report, fixed in >>> >>> https://github.com/php/php-src/commit/fa8611c81ee72839cdff3e72b18cc586feb4aa29 >>>

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread Florin Patan
On Wed, Jun 26, 2013 at 5:02 PM, Anthony Ferrara wrote: > Florin > >> Could you please point out what happened in the past 5 months in PHP >> that changed the landscape so drastically as you say? And don't >> mention folks reinventing the wheel in OOP because that's not news :) > > > The point was

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread Anthony Ferrara
Laruence, so are you saying, that check every method's signature of a class is > *faster* than just check interface? > Yes, yes I am saying that. And yes, the numbers show that. Think about it for a second. When you implement an interface, at compile time the compiler must loop through and check

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread James Gilliland
On Thu, Jun 27, 2013 at 10:50 AM, Florin Patan wrote: > On Wed, Jun 26, 2013 at 5:02 PM, Anthony Ferrara > wrote: > > Florin > > > >> Could you please point out what happened in the past 5 months in PHP > >> that changed the landscape so drastically as you say? And don't > >> mention folks reinve

Re: [PHP-DEV] New syntax for multidimensional array loop with foreach

2013-06-27 Thread Johannes Schlüter
On Thu, 2013-06-27 at 16:58 +0200, Nikita Popov wrote: > On Thu, Jun 27, 2013 at 4:10 PM, Christian Stoller wrote: > > > The new syntax could make it shorter and faster to write... but maybe it's > > a bit too confusing? > > > > $count = 0; > > foreach ($array as $key => $innerArray as $innerKey =

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread Laruence
On Thu, Jun 27, 2013 at 11:54 PM, Anthony Ferrara wrote: > Laruence, > >> so are you saying, that check every method's signature of a class is >> *faster* than just check interface? > > > Yes, yes I am saying that. And yes, the numbers show that. > > Think about it for a second. When you implement

Re: [PHP-DEV] I want to work against Bug 44522 - Upload limit 2G

2013-06-27 Thread Johannes Schlüter
Hi, On Thu, 2013-06-27 at 10:21 +0200, Ralf Lang wrote: > Hi, > > I want to deal with Bug 44522 which disallows uploads > 2G > https://bugs.php.net/bug.php?id=44522&edit=1 Great! > Today with PHP cloud solutions, we are running into more situations > where this really hurts. Yay cloud :-D (i d

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread Laruence
On Fri, Jun 28, 2013 at 12:20 AM, Laruence wrote: > On Thu, Jun 27, 2013 at 11:54 PM, Anthony Ferrara wrote: >> Laruence, >> >>> so are you saying, that check every method's signature of a class is >>> *faster* than just check interface? >> >> >> Yes, yes I am saying that. And yes, the numbers sh

Re: [PHP-DEV] I want to work against Bug 44522 - Upload limit 2G

2013-06-27 Thread Ralf Lang
> Yay cloud :-D > (i don't see why cloud matters, here though it's more about modern > bandwidth and storage space) Just did not want to name the product which prompted me to finally go at it. ;) >> Before I begin providing a github patch (as I have no php svn access and >> I don't think it's nee

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread Ralph Schindler
... group of people are mostly solved already). The average framework core-dev (like Symfony or ZF) isn't going to get *much* benefit out of this either (it can help in some areas, and they will use it, but it's not solving major problems). The Drupals, Magentos and Fuel CMS's of the world. The

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread Laruence
On Fri, Jun 28, 2013 at 12:30 AM, Laruence wrote: > On Fri, Jun 28, 2013 at 12:20 AM, Laruence wrote: >> On Thu, Jun 27, 2013 at 11:54 PM, Anthony Ferrara >> wrote: >>> Laruence, >>> so are you saying, that check every method's signature of a class is *faster* than just check interfac

Re: [PHP-DEV] I want to work against Bug 44522 - Upload limit 2G

2013-06-27 Thread Christopher Jones
On 06/27/2013 09:33 AM, Ralf Lang wrote: Anyway, I have built a version of the patch (using unsigned long instead of signed long as the original did) against old php 5.3.8 and currently a test is running with a 4.7 GiB DVD Image. If it works well, I will submit the patch and attach it to the b

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread Anthony Ferrara
Laruence, previous test script only measure the last all, although that, > interface already won with complex arguments signatures... > > here is a fixed one: https://gist.github.com/laruence/5877928 > > run 3 times: > > $ sapi/cli/php /tmp/2.php > Interface in 1.7314801216125 seconds, 1.73148012

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread Florin Patan
On Thu, Jun 27, 2013 at 6:38 PM, Ralph Schindler wrote: > ... > > >> group of people are mostly solved already). The average framework core-dev >> (like Symfony or ZF) isn't going to get *much* benefit out of this either >> (it can help in some areas, and they will use it, but it's not solving >>

Re: [PHP-DEV] I want to work against Bug 44522 - Upload limit 2G

2013-06-27 Thread Johannes Schlüter
On Thu, 2013-06-27 at 09:52 -0700, Christopher Jones wrote: > > Did you review all the previous mail list discussion about the patch? > IIRC there were a bunch of reasons it never got merged. what we never merged for reasons is large file support. So 32bit machines can use files >2G. The patches

Re: [PHP-DEV] New syntax for multidimensional array loop with foreach

2013-06-27 Thread Patrick ALLAERT
2013/6/27 Johannes Schlüter : > On Thu, 2013-06-27 at 16:58 +0200, Nikita Popov wrote: >> On Thu, Jun 27, 2013 at 4:10 PM, Christian Stoller wrote: >> >> > The new syntax could make it shorter and faster to write... but maybe it's >> > a bit too confusing? >> > >> > $count = 0; >> > foreach ($array

Re: [PHP-DEV] New syntax for multidimensional array loop with foreach

2013-06-27 Thread Pierre du Plessis
On Thu, Jun 27, 2013 at 6:14 PM, Johannes Schlüter wrote: > On Thu, 2013-06-27 at 16:58 +0200, Nikita Popov wrote: > > On Thu, Jun 27, 2013 at 4:10 PM, Christian Stoller >wrote: > > > > > The new syntax could make it shorter and faster to write... but maybe > it's > > > a bit too confusing? > > >

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread Stas Malyshev
Hi! > > I'm assuming that you do know the difference between > E_RECOVERABLE_ERROR and E_ERROR. And the difference is not trivial... Could you please explain what is the non-trivial difference relevant to this case and how it is relevant? Could you also explain why making undefined function produc

Re: [PHP-DEV] New syntax for multidimensional array loop with foreach

2013-06-27 Thread Tjerk Anne Meesters
On Fri, Jun 28, 2013 at 1:13 AM, Pierre du Plessis wrote: > On Thu, Jun 27, 2013 at 6:14 PM, Johannes Schlüter > wrote: > > > On Thu, 2013-06-27 at 16:58 +0200, Nikita Popov wrote: > > > On Thu, Jun 27, 2013 at 4:10 PM, Christian Stoller > >wrote: > > > > > > > The new syntax could make it shorte

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread Anthony Ferrara
Stas, On Thu, Jun 27, 2013 at 1:18 PM, Stas Malyshev wrote: > Hi! > > > > > I'm assuming that you do know the difference between > > E_RECOVERABLE_ERROR and E_ERROR. And the difference is not trivial... > Could you please explain what is the non-trivial difference relevant to > this case and how

Re: [PHP-DEV] New syntax for multidimensional array loop with foreach

2013-06-27 Thread Pierre du Plessis
On Thu, Jun 27, 2013 at 7:29 PM, Tjerk Anne Meesters wrote: > On Fri, Jun 28, 2013 at 1:13 AM, Pierre du Plessis > wrote: > > > On Thu, Jun 27, 2013 at 6:14 PM, Johannes Schlüter > > wrote: > > > > > On Thu, 2013-06-27 at 16:58 +0200, Nikita Popov wrote: > > > > On Thu, Jun 27, 2013 at 4:10 PM, Ch

Re: [PHP-DEV] New syntax for multidimensional array loop with foreach

2013-06-27 Thread Tjerk Anne Meesters
On Fri, Jun 28, 2013 at 1:36 AM, Pierre du Plessis wrote: > On Thu, Jun 27, 2013 at 7:29 PM, Tjerk Anne Meesters wrote: > >> On Fri, Jun 28, 2013 at 1:13 AM, Pierre du Plessis >> wrote: >> >> > On Thu, Jun 27, 2013 at 6:14 PM, Johannes Schlüter >> > wrote: >> > >> > > On Thu, 2013-06-27 at 16:58 +

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread Stas Malyshev
Hi! > No, my point was that you pulled the card "those languages don't have > these structural typing thigns". And I showed one reason they don't. Sorry, it was you who pulled the card of "other dynamic languages have duck typing". I have showed that what other dynamic languages have and what the

Re: [PHP-DEV] I want to work against Bug 44522 - Upload limit 2G

2013-06-27 Thread Yasuo Ohgaki
Hi Just a comment for the patch. 2013/6/27 Ralf Lang > Does anybody know of intricate reasons why the existing patch > > > https://bugs.php.net/patch-display.php?bug_id=44522&patch=uploads_larger_than_2g_HEAD_v2&revision=latest > > could not be included into php 5.5? > It uses long instead of

Re: [PHP-DEV] I want to work against Bug 44522 - Upload limit 2G

2013-06-27 Thread Anthony Ferrara
To be fair, the overall limit is going to be 32 bit anyway (due to the use of int for string lengths)... I'm working on a patch to replace all references of string sizes with size_t, but as you can imagine, it's going to take some time... Just throwing it out there that a better fix may be coming

Re: [PHP-DEV] I want to work against Bug 44522 - Upload limit 2G

2013-06-27 Thread Rasmus Lerdorf
On 06/27/2013 06:13 PM, Anthony Ferrara wrote: > To be fair, the overall limit is going to be 32 bit anyway (due to the use > of int for string lengths)... For file uploads? Why? We never hold the entire file in a string. -Rasmus -- PHP Internals - PHP Runtime Development Mailing List To unsub

Re: [PHP-DEV] Re: hex2bin: E_WARNING is too much for odd string?

2013-06-27 Thread Yasuo Ohgaki
Hi Tjerk, 2013/6/27 Tjerk Meesters > The thread started with the assertion that it raises a warning and the > commits first remove the warning and then adds it again later, so isn't the > whole PR a noop? :) The issue is inconsistent behavior of hex2bin against invalid inputs. Both removing an

Re: [PHP-DEV] ENT_ALL or similar option for htmlspecialchars[_decode]?

2013-06-27 Thread Yasuo Ohgaki
Hi Kris, 2013/6/27 Kris Craig > Yeah I tried html_entity_decode already, but it just returned NULL. On > the same input string, htmlspecialchars_decode returned the input string > but with *some* special characters decoded; 10 and 13 ("\r\n", I think) > were left in their encoded state. I'm no

Re: [PHP-DEV] Re: hex2bin: E_WARNING is too much for odd string?

2013-06-27 Thread Tjerk Meesters
On Fri, Jun 28, 2013 at 9:27 AM, Yasuo Ohgaki wrote: > Hi Tjerk, > > 2013/6/27 Tjerk Meesters > >> The thread started with the assertion that it raises a warning and the >> commits first remove the warning and then adds it again later, so isn't the >> whole PR a noop? :) > > > The issue is incon

Re: [PHP-DEV] ENT_ALL or similar option for htmlspecialchars[_decode]?

2013-06-27 Thread Kris Craig
On Thu, Jun 27, 2013 at 6:43 PM, Yasuo Ohgaki wrote: > Hi Kris, > > 2013/6/27 Kris Craig > >> Yeah I tried html_entity_decode already, but it just returned NULL. On >> the same input string, htmlspecialchars_decode returned the input string >> but with *some* special characters decoded; 10 and

Re: [PHP-DEV] Re: hex2bin: E_WARNING is too much for odd string?

2013-06-27 Thread Yasuo Ohgaki
2013/6/28 Tjerk Meesters > >> Adding E_WARNING is better than removing as a result discussion, IMO. >> > > Given the sizeable number of functions that don't raise warnings, should > this behaviour then be extended to those as well, e.g. base64_decode(), > mb_*()? > > Of course, doing so puts th

Re: [PHP-DEV] ENT_ALL or similar option for htmlspecialchars[_decode]?

2013-06-27 Thread Tjerk Anne Meesters
On Thu, Jun 27, 2013 at 4:42 PM, Kris Craig wrote: > On Thu, Jun 27, 2013 at 12:03 AM, Yasuo Ohgaki wrote: > > > > > 2013/6/27 Kris Craig > > > >> I just noticed that htmlspecialchars_decode doesn't convert entities > like > >> and . > >> > > > > I think htmlspecialchars_decode() only decode

Re: [PHP-DEV] ENT_ALL or similar option for htmlspecialchars[_decode]?

2013-06-27 Thread Kris Craig
On Thu, Jun 27, 2013 at 7:54 PM, Tjerk Anne Meesters wrote: > > > > On Thu, Jun 27, 2013 at 4:42 PM, Kris Craig wrote: > >> On Thu, Jun 27, 2013 at 12:03 AM, Yasuo Ohgaki >> wrote: >> >> > >> > 2013/6/27 Kris Craig >> > >> >> I just noticed that htmlspecialchars_decode doesn't convert entities

Re: [PHP-DEV] ENT_ALL or similar option for htmlspecialchars[_decode]?

2013-06-27 Thread Kris Craig
On Thu, Jun 27, 2013 at 9:20 PM, Kris Craig wrote: > > > On Thu, Jun 27, 2013 at 7:54 PM, Tjerk Anne Meesters wrote: > >> >> >> >> On Thu, Jun 27, 2013 at 4:42 PM, Kris Craig wrote: >> >>> On Thu, Jun 27, 2013 at 12:03 AM, Yasuo Ohgaki >>> wrote: >>> >>> > >>> > 2013/6/27 Kris Craig >>> > >>>

Re: [PHP-DEV] ENT_ALL or similar option for htmlspecialchars[_decode]?

2013-06-27 Thread Tjerk Anne Meesters
On Fri, Jun 28, 2013 at 12:38 PM, Kris Craig wrote: > > > On Thu, Jun 27, 2013 at 9:20 PM, Kris Craig wrote: > >> >> >> On Thu, Jun 27, 2013 at 7:54 PM, Tjerk Anne Meesters wrote: >> >>> >>> >>> >>> On Thu, Jun 27, 2013 at 4:42 PM, Kris Craig wrote: >>> On Thu, Jun 27, 2013 at 12:03 AM, Yas

Re: [PHP-DEV] I want to work against Bug 44522 - Upload limit 2G

2013-06-27 Thread Laruence
Hey: Instead of change the uint to long or size_t, Maybe make the max_file_upload_size 0 means unlimited? like Apached did, ulimited or <= 2Gb https://httpd.apache.org/docs/2.2/mod/core.html#limitrequestbody thanks On Thu, Jun 27, 2013 at 4:21 PM, Ralf Lang wrote: > Hi, > > I want to deal

Re: [PHP-DEV] I want to work against Bug 44522 - Upload limit 2G

2013-06-27 Thread Laruence
On Fri, Jun 28, 2013 at 1:12 PM, Laruence wrote: > Hey: > > Instead of change the uint to long or size_t, Maybe make the > max_file_upload_size 0 means unlimited? like Apached did, ulimited or > <= 2Gb s ,Gb,GB, > > https://httpd.apache.org/docs/2.2/mod/core.html#limitrequestbody > > thanks >

Re: [PHP-DEV] ENT_ALL or similar option for htmlspecialchars[_decode]?

2013-06-27 Thread Gustavo Lopes
Em 2013-06-28 4:10, Kris Craig escreveu: On Thu, Jun 27, 2013 at 6:43 PM, Yasuo Ohgaki wrote: 2013/6/27 Kris Craig Yeah I tried html_entity_decode already, but it just returned NULL. On the same input string, htmlspecialchars_decode returned the input string but with *some* special charac

Re: [PHP-DEV] I want to work against Bug 44522 - Upload limit 2G

2013-06-27 Thread Ralf Lang
On 28.06.2013 07:12, Laruence wrote: > Hey: > > Instead of change the uint to long or size_t, Maybe make the > max_file_upload_size 0 means unlimited? like Apached did, ulimited or > <= 2Gb > > https://httpd.apache.org/docs/2.2/mod/core.html#limitrequestbody This doesn't change the behaviour

Re: [PHP-DEV] I want to work against Bug 44522 - Upload limit 2G

2013-06-27 Thread Ralf Lang
On 27.06.2013 18:52, Christopher Jones wrote: > > > On 06/27/2013 09:33 AM, Ralf Lang wrote: > >> Anyway, I have built a version of the patch (using unsigned long instead >> of signed long as the original did) against old php 5.3.8 and currently >> a test is running with a 4.7 GiB DVD Image. If