Re: PHP 4.0 Bug #6261: sscanf($a, "%d"); produces core dump if $a is undefined

From: Date: Sun, 20 Aug 2000 15:35:13 +0000
Subject: Re: PHP 4.0 Bug #6261: sscanf($a, "%d"); produces core dump if $a is undefined
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-29920@lists.php.net to get a copy of this message
>> From: alex@zend.com >> Operating system: linux-glibc21 >> PHP version: 4.0 Latest CVS (20/08/2000) >> PHP Bug Type: Reproduceable crash >> Bug description: sscanf($a, "%d"); produces core dump if $a is undefined >> >> <? sscanf($a, "%d"); ?> Could not reproduce this, but sscanf has another problem - when doing <? sscanf($a, "%d", $b); ?> it says: <b>Warning</b>: Parameter 2 to sscanf() must be passed by reference in <b>-</b> on line <b>1</b><br> Which means it seems to require old call-time reference passing. I'm not sure how to fix this. Seems to be a real problem here... -- Stanislav Malyshev stas@zend.com +972-3-6139665 ext.106

« previous php.dev (#29920) next »