Re: cvs: php-src(PHP_5_2) / README.UPDATE_5_2 /ext/standard microtime.c
| From: | Steph Fox | Date: | Fri, 03 Nov 2006 17:53:47 +0000 |
| Subject: | Re: cvs: php-src(PHP_5_2) / README.UPDATE_5_2 /ext/standard microtime.c | ||
| References: | 1 2 3 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-41323@lists.php.net to get a copy of this message | ||
OK, we'll worry about that part next time the file needs a rewrite. But could you please put a clue in there when you make entries anyway in that category? (e.g. who, when, revision info - any one of these is useful).
----- Original Message ----- From: "Hannes Magnusson" <bjori@php.net>
To: "Steph Fox" <steph@zend.com>
Cc: <php-cvs@lists.php.net>
Sent: Friday, November 03, 2006 7:47 PM
Subject: Re: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2 /ext/standard microtime.c
Hi Steph On 11/3/06, Steph Fox <steph@zend.com> wrote:Hannes, originally at least everything listed in that file was a backward incompatible change! Can you please leave something a bit less cryptic in there so it's easier to research at the point of the next release?I didn't really know what else to call it.. All other mentioned backwards incompatible changes are listed as "error changes", this doesn't really fit that category. The BC break is due to oversight in the parameter parsing which didn't exit the execution of the function, no matter what you passed in. -HannesThanks, - Steph ----- Original Message ----- From: "Hannes Magnusson" <bjori@php.net> To: <php-cvs@lists.php.net> Sent: Friday, November 03, 2006 5:48 PM Subject: [PHP-CVS] cvs: php-src(PHP_5_2) / README.UPDATE_5_2 /ext/standard microtime.cbjori Fri Nov 3 15:48:39 2006 UTCModified files: (Branch: PHP_5_2)/php-src README.UPDATE_5_2 /php-src/ext/standard microtime.c Log: MFH: fix parameter parsing in getrusage() http://cvs.php.net/viewvc.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.28&r2=1.1.2.29&diff_format=u Index: php-src/README.UPDATE_5_2 diff -u php-src/README.UPDATE_5_2:1.1.2.28 php-src/README.UPDATE_5_2:1.1.2.29 --- php-src/README.UPDATE_5_2:1.1.2.28 Fri Nov 3 15:06:51 2006 +++ php-src/README.UPDATE_5_2 Fri Nov 3 15:48:39 2006 @@ -173,6 +173,14 @@ you to fine-grain the levels of the messages stored. +============================== +Backwards incompatible changes +============================== + +In the PHP core +=============== +getrusage() will return NULL when passed incompatible arguments + ================== NEW ERROR MESSAGES ================== http://cvs.php.net/viewvc.cgi/php-src/ext/standard/microtime.c?r1=1.53.2.2&r2=1.53.2.2.2.1&diff_format=u Index: php-src/ext/standard/microtime.c diff -u php-src/ext/standard/microtime.c:1.53.2.2 php-src/ext/standard/microtime.c:1.53.2.2.2.1 --- php-src/ext/standard/microtime.c:1.53.2.2 Sun Jan 1 12:50:15 2006 +++ php-src/ext/standard/microtime.c Fri Nov 3 15:48:39 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: microtime.c,v 1.53.2.2 2006/01/01 12:50:15 sniper Exp $ */ +/* $Id: microtime.c,v 1.53.2.2.2.1 2006/11/03 15:48:39 bjori Exp $ */ #include "php.h" @@ -115,7 +115,11 @@ long pwho = 0; int who = RUSAGE_SELF; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &pwho) != FAILURE && pwho == 1) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &pwho) == FAILURE) { + return; + } + + if (pwho == 1) { who = RUSAGE_CHILDREN; } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php