File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / lang / bug35176.phpt
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:34:34 2012 UTC (12 years, 5 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, HEAD
php 5.4.3+patches

    1: --TEST--
    2: Bug #35176 (include()/require()/*_once() produce wrong error messages about main())
    3: --INI--
    4: html_errors=1
    5: docref_root="/"
    6: error_reporting=4095
    7: --FILE--
    8: <?php
    9: require_once('nonexisiting.php');
   10: ?>
   11: --EXPECTF--
   12: <br />
   13: <b>Warning</b>:  require_once(nonexisiting.php) [<a href='/function.require-once.html'>function.require-once.html</a>]: failed to open stream: No such file or directory in <b>%sbug35176.php</b> on line <b>2</b><br />
   14: <br />
   15: <b>Fatal error</b>:  require_once() [<a href='/function.require.html'>function.require.html</a>]: Failed opening required 'nonexisiting.php' (%s) in <b>%sbug35176.php</b> on line <b>2</b><br />

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>