]> granicus.if.org Git - php/commitdiff
tests for the crash in bug 28213
authorGeorge Schlossnagle <gschlossnagle@php.net>
Fri, 18 Jun 2004 18:10:52 +0000 (18:10 +0000)
committerGeorge Schlossnagle <gschlossnagle@php.net>
Fri, 18 Jun 2004 18:10:52 +0000 (18:10 +0000)
tests/lang/bug28213.phpt [new file with mode: 0644]

diff --git a/tests/lang/bug28213.phpt b/tests/lang/bug28213.phpt
new file mode 100644 (file)
index 0000000..3677d4c
--- /dev/null
@@ -0,0 +1,10 @@
+--TEST--
+Bug #28213 (crash in debug_print_backtrace in static methods)
+--FILE--
+<?php
+class FooBar { static function error() { debug_print_backtrace(); } }
+set_error_handler(array('FooBar', 'error'));
+include('foobar.php');
+?>
+--EXPECTREGEX--
+.*#1\s*include.*