summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2005-04-16 15:36:22 +0000
committerSara Golemon <pollita@php.net>2005-04-16 15:36:22 +0000
commitf838f8e37dcb7b33a61e3a3bdcc0670133344333 (patch)
tree2d80006a0a7bcef7e6a6d10e88b7fe0d79501e1e /Zend
parent083795cbbfefb875c06977cce9d334a77156947c (diff)
downloadphp-git-f838f8e37dcb7b33a61e3a3bdcc0670133344333.tar.gz
method_exists() regression test
Diffstat (limited to 'Zend')
-rw-r--r--Zend/tests/method_exists.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/method_exists.phpt b/Zend/tests/method_exists.phpt
new file mode 100644
index 0000000000..63ea3bd76d
--- /dev/null
+++ b/Zend/tests/method_exists.phpt
@@ -0,0 +1,11 @@
+--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)