From: [EMAIL PROTECTED]
Operating system: Linux/amd64
PHP version: 4.3.9
PHP Bug Type: Reproducible crash
Bug description: Crash when user error handler returns false
Description:
------------
If user error handler returns false on amd64, PHP crashes. This is due to
the fact that zend_error uses va_list twice, which does not work on
systems where va_arg modifies va_list.
Reproduce code:
---------------
<?
function my_error($errno, $errstr, $errfile, $errline)
{
print "$errstr ($errno) in $errfile:$errline\n";
return false;
}
set_error_handler('my_error');
$f = fopen("/tmp/blah", "r");
?>
--
Edit bug report at http://bugs.php.net/?id=30998&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30998&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=30998&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=30998&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30998&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30998&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30998&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30998&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30998&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30998&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30998&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=30998&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=30998&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30998&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30998&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30998&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30998&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30998&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30998&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30998&r=mysqlcfg