summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2007-11-02 17:47:39 +0000
committerJani Taskinen <jani@php.net>2007-11-02 17:47:39 +0000
commit77bc1f8b76bfcf6665a7293f23db189a0ec1f050 (patch)
tree00b8d9921f5937691b69819ace8310b609414d04
parentf10766f1fbf4e6839cff0a24e9090ae81a3e9f6c (diff)
downloadphp-git-77bc1f8b76bfcf6665a7293f23db189a0ec1f050.tar.gz
- Missing test. (NOTE: Fails due to unexpected double output for me, OKOK)
-rw-r--r--Zend/tests/bug37251.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/Zend/tests/bug37251.phpt b/Zend/tests/bug37251.phpt
new file mode 100644
index 0000000000..320d544ce5
--- /dev/null
+++ b/Zend/tests/bug37251.phpt
@@ -0,0 +1,19 @@
+--TEST--
+Bug #37251 (deadlock when custom error handler is to catch array type hint error)
+--FILE--
+<?php
+function error_handler($errno, $errstr, $errfile, $errline, $context) {
+ echo 'OK';
+}
+
+set_error_handler('error_handler');
+
+class Foo {
+ function bar(array $foo) {
+ }
+}
+
+$foo = new Foo();
+$foo->bar();
+--EXPECT--
+OK