From:             arjen at glas dot its dot tudelft dot nl
Operating system: Linux
PHP version:      5CVS-2003-12-22 (dev)
PHP Bug Type:     Zend Engine 2 problem
Bug description:  calling class_exists on a nonexistent class in __autoload results in 
segfault

Description:
------------
When calling class_exists on a nonexistent classname in __autoload, you'll
get a segfault.

This is in beta1, beta2 and beta3 (and now I had the time to create a
testcase and do a report). Which ran under apache2 (2.0.48) on gentoo
linux.

And then I saw this report:
http://bugs.php.net/bug.php?id=26630&edit=2
So I downloaded the php5-200312222030 snapshot and there it also
segfaults...



Reproduce code:
---------------
<?
function __autoload($classname)
{
    if(!class_exists('test'))
    {
        echo "This won't be reached due to a segfault";
    }
}

$test = new test();

?>


-- 
Edit bug report at http://bugs.php.net/?id=26697&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26697&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26697&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26697&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26697&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26697&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=26697&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=26697&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26697&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26697&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26697&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26697&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26697&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26697&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26697&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26697&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26697&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26697&r=float

Reply via email to