summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2008-09-02 09:45:49 +0000
committerDmitry Stogov <dmitry@php.net>2008-09-02 09:45:49 +0000
commitd5bba04ac5b48d64e056ed98735ad48aa856cf90 (patch)
tree97522e2246b17802add3fc06d4dd98f2df228d3e /tests
parent66ebb8019b7cc3232c870557db07eaeca714b681 (diff)
downloadphp-git-d5bba04ac5b48d64e056ed98735ad48aa856cf90.tar.gz
Fixed Bug #43958 (class name added into the error message)
Diffstat (limited to 'tests')
-rw-r--r--tests/lang/bug43958.phpt17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/lang/bug43958.phpt b/tests/lang/bug43958.phpt
new file mode 100644
index 0000000000..bc88bcda0f
--- /dev/null
+++ b/tests/lang/bug43958.phpt
@@ -0,0 +1,17 @@
+--TEST--
+Bug #43958 (class name added into the error message)
+--FILE--
+<?php
+class MyClass
+{
+ static public function loadCode($p) {
+ return include $p;
+ }
+}
+
+MyClass::loadCode('file-which-does-not-exist-on-purpose.php');
+--EXPECTF--
+Warning: include(file-which-does-not-exist-on-purpose.php): failed to open stream: No such file or directory in %sbug43958.php on line 5
+
+Warning: include(): Failed opening 'file-which-does-not-exist-on-purpose.php' for inclusion (include_path='%s') in %sbug43958.php on line 5
+