php-src/Zend/tests/method_exists.phpt
2005-04-16 15:36:22 +00:00

12 lines
228 B
PHP

--TEST--
method_exists() segfaults
--FILE--
<?php
class testclass { function testfunc() { } }
var_dump(method_exists('testclass','testfunc'));
var_dump(method_exists('testclass','nonfunc'));
?>
--EXPECT--
bool(true)
bool(false)