1--TEST-- 2Bug #26697 (calling class_exists on a nonexistent class in __autoload results in segfault) 3--SKIPIF-- 4<?php if (function_exists('__autoload')) die('skip __autoload() declared in auto_prepend_file');?> 5--FILE-- 6<?php 7 8function __autoload($name) 9{ 10 echo __METHOD__ . "($name)\n"; 11 var_dump(class_exists('NotExistingClass')); 12 echo __METHOD__ . "($name), done\n"; 13} 14 15var_dump(class_exists('NotExistingClass')); 16 17?> 18===DONE=== 19--EXPECTF-- 20__autoload(NotExistingClass) 21bool(false) 22__autoload(NotExistingClass), done 23bool(false) 24===DONE=== 25