[PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/phar/phar.c branches/PHP_5_3/ext/phar/phar_object.c branches/PHP_5_3/ext/phar/stream.c branches/PHP_5_3/ext/phar/util.c branches/PHP_5_4/ext/phar/phar

2011-08-07 Thread Xinchen Hui
laruence Sun, 07 Aug 2011 11:13:27 + Revision: http://svn.php.net/viewvc?view=revision&revision=314419 Log: Initialize variable with fixed value for avoiding compile warnings Changed paths: U php/php-src/branches/PHP_5_3/ext/phar/phar.c U php/php-s

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_4/Zend/zend_API.c trunk/Zend/zend_API.c

2011-08-07 Thread Felipe Pena
felipe Sun, 07 Aug 2011 13:04:02 + Revision: http://svn.php.net/viewvc?view=revision&revision=314420 Log: - Revert r314387 (property_info.name has the mangled name) Changed paths: U php/php-src/branches/PHP_5_4/Zend/zend_API.c U php/php-src/tru

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/standard/basic_functions.c branches/PHP_5_4/ext/standard/basic_functions.c trunk/ext/standard/basic_functions.c

2011-08-07 Thread Xinchen Hui
laruence Sun, 07 Aug 2011 13:19:04 + Revision: http://svn.php.net/viewvc?view=revision&revision=314422 Log: Fixed bug that may dereferenced NULL pointer before checking Changed paths: U php/php-src/branches/PHP_5_3/ext/standard/basic_functions.c U

Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/standard/basic_functions.c branches/PHP_5_4/ext/standard/basic_functions.c trunk/ext/standard/basic_functions.c

2011-08-07 Thread Antony Dovgal
On 08/07/2011 05:19 PM, Xinchen Hui wrote: opts = (opt_struct *) erealloc(opts, sizeof(opt_struct) * (len + count + 1)); + if (!opts) { + RETURN_FALSE; + } + erealloc() cannot return NULL whatever happens and if you look at the

Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/standard/basic_functions.c branches/PHP_5_4/ext/standard/basic_functions.c trunk/ext/standard/basic_functions.c

2011-08-07 Thread Pierre Joye
We however have plenty of realloc calls without any checks. Cheers, On Sun, Aug 7, 2011 at 3:50 PM, Antony Dovgal wrote: > On 08/07/2011 05:19 PM, Xinchen Hui wrote: >> >>                opts = (opt_struct *) erealloc(opts, sizeof(opt_struct) * >> (len + count + 1)); >> +               if (!opts

Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/standard/basic_functions.c branches/PHP_5_4/ext/standard/basic_functions.c trunk/ext/standard/basic_functions.c

2011-08-07 Thread Antony Dovgal
On 08/07/2011 06:16 PM, Laruence wrote: Hi: oh, sorry for mis-understanding, I will revert these changes. You can leave it as it is now, I believe. Just don't waste your time on such checks. -- Wbr, Antony Dovgal --- http://pinba.org - realtime profiling for PHP -- PHP CVS Mailing L

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/standard/basic_functions.c branches/PHP_5_4/ext/standard/basic_functions.c trunk/ext/standard/basic_functions.c

2011-08-07 Thread Xinchen Hui
laruence Sun, 07 Aug 2011 14:25:30 + Revision: http://svn.php.net/viewvc?view=revision&revision=314425 Log: revert -r314422 No need to check erealloc's return Changed paths: U php/php-src/branches/PHP_5_3/ext/standard/basic_functions.c U php/php-s

[PHP-CVS] svn: /php/php-src/branches/PHP_5_4/ext/intl/resourcebundle/ resourcebundle_class.h

2011-08-07 Thread Gwynne Raskind
gwynne Sun, 07 Aug 2011 15:07:53 + Revision: http://svn.php.net/viewvc?view=revision&revision=314431 Log: Add missing php.h include Changed paths: U php/php-src/branches/PHP_5_4/ext/intl/resourcebundle/resourcebundle_class.h Modified: php/php-src/br

[PHP-CVS] svn: /php/php-src/branches/PHP_5_4/ext/intl/grapheme/ grapheme_string.c

2011-08-07 Thread Gwynne Raskind
gwynne Sun, 07 Aug 2011 15:09:42 + Revision: http://svn.php.net/viewvc?view=revision&revision=314432 Log: fix for bug #55019 Bug: https://bugs.php.net/55019 (Assigned) undefined symbol: grapheme_extract_count_iter in Unknown on line 0 Changed paths:

[PHP-CVS] svn: /php/php-src/branches/PHP_5_4/ext/intl/grapheme/ grapheme_util.c grapheme_util.h

2011-08-07 Thread Gwynne Raskind
gwynne Sun, 07 Aug 2011 15:12:34 + Revision: http://svn.php.net/viewvc?view=revision&revision=314433 Log: Fixes build issues with ext/intl. This appears to be related to bug #55019, but since the functions in question are used elsewhere, the solution is to

Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_4/Zend/zend_API.c trunk/Zend/zend_API.c

2011-08-07 Thread Rasmus Lerdorf
True, but the problem here is that name may be free'ed at that point. On line 3355 we have: property_info.name = (char*)name; and then on 3365: if (ce->type == ZEND_USER_CLASS) { efree(property_info.name); } else { free(property_info.name);

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/standard/php_crypt_r.c branches/PHP_5_4/ext/standard/php_crypt_r.c trunk/ext/standard/php_crypt_r.c

2011-08-07 Thread Rasmus Lerdorf
rasmus Sun, 07 Aug 2011 15:38:36 + Revision: http://svn.php.net/viewvc?view=revision&revision=314434 Log: Make static analyzers happy Changed paths: U php/php-src/branches/PHP_5_3/ext/standard/php_crypt_r.c U php/php-src/branches/PHP_5_4/ext/stan

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/pdo/php_pdo_int.h branches/PHP_5_4/ext/pdo/php_pdo_int.h trunk/ext/pdo/php_pdo_int.h

2011-08-07 Thread Rasmus Lerdorf
rasmus Sun, 07 Aug 2011 15:45:18 + Revision: http://svn.php.net/viewvc?view=revision&revision=314435 Log: Not an issue here, but a good habit to follow consistently. Never use strcpy/strcat. Changed paths: U php/php-src/branches/PHP_5_3/ext/pdo/php_pd

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_4/sapi/cli/php_cli_server.c trunk/sapi/cli/php_cli_server.c

2011-08-07 Thread Rasmus Lerdorf
rasmus Sun, 07 Aug 2011 15:52:46 + Revision: http://svn.php.net/viewvc?view=revision&revision=314436 Log: Signed 1-bit bitfields make no sense Changed paths: U php/php-src/branches/PHP_5_4/sapi/cli/php_cli_server.c U php/php-src/trunk/sapi/cli/ph

[PHP-CVS] svn: /php/php-src/trunk/ ext/phar/phar_internal.h sapi/cli/php_cli_server.c

2011-08-07 Thread Rasmus Lerdorf
rasmus Sun, 07 Aug 2011 15:57:35 + Revision: http://svn.php.net/viewvc?view=revision&revision=314437 Log: More signed 1-bit bitfields Changed paths: U php/php-src/trunk/ext/phar/phar_internal.h U php/php-src/trunk/sapi/cli/php_cli_server.c Modif

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/pdo/php_pdo_int.h branches/PHP_5_3/ext/standard/php_crypt_r.c branches/PHP_5_4/ext/phar/phar_internal.h branches/PHP_5_4/ext/standard/php_crypt_r.c br

2011-08-07 Thread Rasmus Lerdorf
rasmus Sun, 07 Aug 2011 16:10:34 + Revision: http://svn.php.net/viewvc?view=revision&revision=314438 Log: Fix more signed 1-bit bitfield, and let's use strlcpy/strlcat instead for these static string copies Changed paths: U php/php-src/branches/PHP_5_3

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_4/Zend/zend_operators.h trunk/Zend/zend_operators.h

2011-08-07 Thread Gwynne Raskind
gwynne Sun, 07 Aug 2011 16:31:21 + Revision: http://svn.php.net/viewvc?view=revision&revision=314439 Log: For 5.4, fix C++-style comments. For trunk, forward-port build fix. Changed paths: U php/php-src/branches/PHP_5_4/Zend/zend_operators.h U ph

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/intl/grapheme/grapheme_string.c branches/PHP_5_3/ext/intl/grapheme/grapheme_util.c branches/PHP_5_3/ext/intl/grapheme/grapheme_util.h trunk/ext/intl/g

2011-08-07 Thread Gwynne Raskind
gwynne Sun, 07 Aug 2011 17:14:14 + Revision: http://svn.php.net/viewvc?view=revision&revision=314440 Log: Back- and front-port fixes for #55019 Bug: https://bugs.php.net/55019 (Closed) undefined symbol: grapheme_extract_count_iter in Unknown on line 0

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/intl/resourcebundle/resourcebundle_class.h trunk/ext/intl/resourcebundle/resourcebundle_class.h

2011-08-07 Thread Gwynne Raskind
gwynne Sun, 07 Aug 2011 17:15:40 + Revision: http://svn.php.net/viewvc?view=revision&revision=314441 Log: Front- and back-port rev 314431 (missing php.h include) Changed paths: U php/php-src/branches/PHP_5_3/ext/intl/resourcebundle/resourcebundle_clas

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_4/NEWS branches/PHP_5_4/Zend/tests/binary-32bit.phpt branches/PHP_5_4/Zend/tests/binary.phpt branches/PHP_5_4/Zend/zend_language_scanner.c branches/PHP_5_4/

2011-08-07 Thread Derick Rethans
derick Sun, 07 Aug 2011 17:36:31 + Revision: http://svn.php.net/viewvc?view=revision&revision=314443 Log: - Fixed bug #55378: binary number literal returns float number though its value is enough small Bug: https://bugs.php.net/55378 (Assigned) binary numb

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/date/php_date.c branches/PHP_5_4/ext/date/php_date.c trunk/ext/date/php_date.c

2011-08-07 Thread Gwynne Raskind
gwynne Sun, 07 Aug 2011 18:12:52 + Revision: http://svn.php.net/viewvc?view=revision&revision=314445 Log: possible use without init fixed Changed paths: U php/php-src/branches/PHP_5_3/ext/date/php_date.c U php/php-src/branches/PHP_5_4/ext/date/ph

Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_4/Zend/zend_API.c trunk/Zend/zend_API.c

2011-08-07 Thread Stas Malyshev
Hi! On 8/7/11 8:24 AM, Rasmus Lerdorf wrote: True, but the problem here is that name may be free'ed at that point. On line 3355 we have: property_info.name = (char*)name; and then on 3365: if (ce->type == ZEND_USER_CLASS) { efree(property_info.name); } e

Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/standard/basic_functions.c branches/PHP_5_4/ext/standard/basic_functions.c trunk/ext/standard/basic_functions.c

2011-08-07 Thread Stas Malyshev
Hi! On 8/7/11 7:25 AM, Xinchen Hui wrote: laruence Sun, 07 Aug 2011 14:25:30 + memset(opts, 0, count * sizeof(opt_struct)); + if (!opts) { + RETURN_FALSE; + } + I'm not sure I understand this

Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_4/Zend/zend_API.c trunk/Zend/zend_API.c

2011-08-07 Thread Rasmus Lerdorf
On 08/07/2011 01:31 PM, Stas Malyshev wrote: > Hi! > > On 8/7/11 8:24 AM, Rasmus Lerdorf wrote: >> True, but the problem here is that name may be free'ed at that point. On >> line 3355 we have: >> >> property_info.name = (char*)name; >> >> and then on 3365: >> >> if (ce->type == ZEND_

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/pdo/pdo.c branches/PHP_5_3/ext/pdo/pdo_dbh.c branches/PHP_5_3/ext/pdo/pdo_sql_parser.re branches/PHP_5_3/ext/pdo/php_pdo_int.h branches/PHP_5_4/ext/pd

2011-08-07 Thread Ilia Alshanetsky
iliaaSun, 07 Aug 2011 23:46:00 + Revision: http://svn.php.net/viewvc?view=revision&revision=314450 Log: Fixes for variety of issues identified by coverity scan Changed paths: U php/php-src/branches/PHP_5_3/ext/pdo/pdo.c U php/php-src/branches/P

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/pdo/pdo_sql_parser.re branches/PHP_5_3/ext/pdo_sqlite/sqlite_driver.c branches/PHP_5_4/ext/pdo/pdo_sql_parser.re branches/PHP_5_4/ext/pdo_sqlite/sqlit

2011-08-07 Thread Ilia Alshanetsky
iliaaMon, 08 Aug 2011 00:07:54 + Revision: http://svn.php.net/viewvc?view=revision&revision=314451 Log: Avoid strcpy() usage Changed paths: U php/php-src/branches/PHP_5_3/ext/pdo/pdo_sql_parser.re U php/php-src/branches/PHP_5_3/ext/pdo_sqlite/s

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/standard/basic_functions.c branches/PHP_5_4/ext/standard/basic_functions.c trunk/ext/standard/basic_functions.c

2011-08-07 Thread Xinchen Hui
laruence Mon, 08 Aug 2011 00:47:40 + Revision: http://svn.php.net/viewvc?view=revision&revision=314452 Log: Remove no sense statements Changed paths: U php/php-src/branches/PHP_5_3/ext/standard/basic_functions.c U php/php-src/branches/PHP_5_4/ext/s

Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/standard/basic_functions.c branches/PHP_5_4/ext/standard/basic_functions.c trunk/ext/standard/basic_functions.c

2011-08-07 Thread Laruence
Hi: This was what it was before I edit it. I also don't very sure about it. and after tracking, I found this statements was introduced in -r243300 diff: http://svn.php.net/viewvc/php/php-src/trunk/ext/standard/basic_functions.c?r1=243098&r2=243300 looks like it was wrong in the rewr

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_4/ext/spl/spl_observer.c trunk/ext/spl/spl_observer.c

2011-08-07 Thread Xinchen Hui
laruence Mon, 08 Aug 2011 02:33:03 + Revision: http://svn.php.net/viewvc?view=revision&revision=314456 Log: Wrong sizeof Changed paths: U php/php-src/branches/PHP_5_4/ext/spl/spl_observer.c U php/php-src/trunk/ext/spl/spl_observer.c Modified: php/

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/Zend/zend.c branches/PHP_5_4/Zend/zend.c trunk/Zend/zend.c

2011-08-07 Thread Pierrick Charron
pierrick Mon, 08 Aug 2011 03:08:59 + Revision: http://svn.php.net/viewvc?view=revision&revision=314457 Log: Use snprintf and strncat to make the static analyzers happy Changed paths: U php/php-src/branches/PHP_5_3/Zend/zend.c U php/php-src/branches

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_4/ext/standard/info.c trunk/ext/standard/info.c

2011-08-07 Thread Xinchen Hui
laruence Mon, 08 Aug 2011 06:49:17 + Revision: http://svn.php.net/viewvc?view=revision&revision=314467 Log: Make codes more clearly, and make the static analyzer silent.. Changed paths: U php/php-src/branches/PHP_5_4/ext/standard/info.c U php/php-s

Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_4/Zend/zend_API.c trunk/Zend/zend_API.c

2011-08-07 Thread Johannes Schlüter
Hi, might be good to document in Zend/README.ZEND_MM or some similar place? johannes On Thu, 2011-07-14 at 12:21 +, Derick Rethans wrote: > derick Thu, 14 Jul 2011 12:21:15 + > > Revision: http://svn.php.net/viewvc?view=revision&revision=313243 > > Log