]> granicus.if.org Git - php/commitdiff
- Fixed error handler for situations in which an error
authorTimm Friebe <thekid@php.net>
Sun, 6 Feb 2005 14:06:21 +0000 (14:06 +0000)
committerTimm Friebe <thekid@php.net>
Sun, 6 Feb 2005 14:06:21 +0000 (14:06 +0000)
  was raised in an include file

ext/sybase_ct/tests/index.php

index 346e6d13be48b2d1699c9bea955f97aa7bbd33e4..e7c8e6aacdf22cecb046247f478af922a5340d53 100644 (file)
@@ -84,7 +84,7 @@
         "\n%s: %s in %s on line %d\n", 
         $names[$errno], 
         $errstr,
-        $this->name,
+        strstr($errfile, 'eval()\'d code') ? $this->name : $errfile,
         $errline
       );
     }