Re: [PHP-DEV] bug #39863 in trunk/5.4

2011-06-06 Thread Stas Malyshev
Hi! Ok, I've committed in 5.4 and trunk the argument parser part. Now I need to fix some tests and try to found other places needing for related checks. Thanks for fixing it! -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227 -- PHP Internals

Re: [PHP-DEV] bug #39863 in trunk/5.4

2011-06-06 Thread Felipe Pena
Hi, 2011/6/5 Stas Malyshev > Hi! > > > Of course, I was just checking if it's what you guys are thinking first. >> > > Well, there was basically two ideas: > 1. Add filename length to streams and check inside streams > 2. Check inside argument parser > > Both have downsides: (1) does not captur

Re: [PHP-DEV] bug #39863 in trunk/5.4

2011-06-05 Thread Stas Malyshev
Hi! Of course, I was just checking if it's what you guys are thinking first. Well, there was basically two ideas: 1. Add filename length to streams and check inside streams 2. Check inside argument parser Both have downsides: (1) does not capture cases when we don't use streams (such as dire

Re: [PHP-DEV] bug #39863 in trunk/5.4

2011-06-05 Thread Pierre Joye
On Sun, Jun 5, 2011 at 9:13 PM, Felipe Pena wrote: > 2011/6/5 Stas Malyshev >> >> Hi! >> >>> Should http://felipe.ath.cx/diff/parse_arg_null_path.diff be enough >>> (beyond changing others function parse args, fixing the tests, >>> include+require part)? >>> >>> $ sapi/cli/php -r 'fopen("a\0b", "

Re: [PHP-DEV] bug #39863 in trunk/5.4

2011-06-05 Thread Felipe Pena
2011/6/5 Stas Malyshev > Hi! > > > Should http://felipe.ath.cx/diff/parse_arg_null_path.diff be enough >> (beyond changing others function parse args, fixing the tests, >> include+require part)? >> >> $ sapi/cli/php -r 'fopen("a\0b", "r");' >> >> Warning: fopen() expects parameter 1 to be valid

Re: [PHP-DEV] bug #39863 in trunk/5.4

2011-06-05 Thread Stas Malyshev
Hi! Should http://felipe.ath.cx/diff/parse_arg_null_path.diff be enough (beyond changing others function parse args, fixing the tests, include+require part)? $ sapi/cli/php -r 'fopen("a\0b", "r");' Warning: fopen() expects parameter 1 to be valid path, string given in Command line code on line

Re: [PHP-DEV] bug #39863 in trunk/5.4

2011-06-05 Thread Felipe Pena
Hi, 2011/6/5 Pierre Joye > hi, > > Not apparently, it was not fixed in trunk. > > There was a discussion about using zend_arg for paths and additional > function or macros to be used instead of duplicating the tests > everywhere. But no consensus or agreement have been reached. > > Should http:/

Re: [PHP-DEV] bug #39863 in trunk/5.4

2011-06-05 Thread Pierre Joye
hi, Not apparently, it was not fixed in trunk. There was a discussion about using zend_arg for paths and additional function or macros to be used instead of duplicating the tests everywhere. But no consensus or agreement have been reached. Cheers, On Sun, Jun 5, 2011 at 10:25 AM, Stas Malyshev

[PHP-DEV] bug #39863 in trunk/5.4

2011-06-05 Thread Stas Malyshev
Hi! As far as I can see, bug 39863 was fixed in 5.3, but the fix still not in trunk/5.4. Should we merge the same patch into trunk/5.4 or somebody is volunteering to fix it, e.g. like described here: http://news.php.net/php.internals/50191? See also the about it discussion: http://www.serverp