Re: [PHP-DEV] PHP 4.0 Bug #6261: sscanf($a, "%d"); produces core dump if $a is undefined From: Stanislav Malyshev (stas <email protected>)
Date: 08/20/00

>> From: alex <email protected>
>> 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 <email protected>          
+972-3-6139665 ext.106

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>