mirror of
https://github.com/php/php-src.git
synced 2024-12-19 06:50:17 +08:00
12 lines
228 B
PHP
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)
|