]> granicus.if.org Git - php/commitdiff
Added test case for bug #23584
authorfoobar <sniper@php.net>
Wed, 14 May 2003 00:06:55 +0000 (00:06 +0000)
committerfoobar <sniper@php.net>
Wed, 14 May 2003 00:06:55 +0000 (00:06 +0000)
tests/lang/bug23584.phpt [new file with mode: 0644]

diff --git a/tests/lang/bug23584.phpt b/tests/lang/bug23584.phpt
new file mode 100644 (file)
index 0000000..417cfb0
--- /dev/null
@@ -0,0 +1,13 @@
+--TEST--
+Bug #23584 (error line numbers off by one when using #!php)
+--FILE--
+#!php
+<?php
+
+error_reporting(E_ALL);
+
+echo $foo;
+
+?>
+--EXPECTREGEX--
+Notice: Undefined variable:.*foo in .* on line 6