#46395 [Com]: Inconsistent behaviour of require_once

[email protected] ("befroozfar at yahoo dot com")
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               46395
 Comment by:       befroozfar at yahoo dot com
 Reported By:      ebosman at gmail dot com
 Status:           No Feedback
 Bug Type:         Directory function related
 Operating System: Linux
 PHP Version:      5.2.6
 New Comment:

Warning: require_once(Mail.php) [function.require-once]: failed to open
stream: No such file or directory in


Previous Comments:
------------------------------------------------------------------------

[2009-01-29 01:00:15] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2009-01-21 19:47:57] [email protected]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/



------------------------------------------------------------------------

[2008-12-09 20:30:36] tomas at matfyz dot cz

Note that my bug #46801 was marked as a duplicate of this one. My
testcase could be found here:
http://tomas.matfyz.cz/obs/pok_require_dirs3/report/www/use.php

------------------------------------------------------------------------

[2008-11-24 17:33:18] ebosman at gmail dot com

And then I forgot that I put the original include_path back, apologies

/var/www/bug/top.php /var/www/bug
/var/www/bug/subdir/sub.inc /var/www/bug
(and htmlized:)
Warning: require_once(../top1.inc) [function.require-once]: failed to
open stream: No such file or directory in /var/www/bug/subdir/sub.inc on
line 1

Fatal error: require_once() [function.require]: Failed opening required
'../top1.inc' (include_path='/usr/share/php:/usr/share/pear') in
/var/www/bug/subdir/sub.inc on line 1

------------------------------------------------------------------------

[2008-11-24 17:30:28] ebosman at gmail dot com

correction, for top.php it should be (still no difference):

/var/www/bug/top.php /var/www/bug
/var/www/bug/subdir/sub.inc /var/www/bug
(and htmlized)
Warning: require_once(../top1.inc) [function.require-once]: failed to
open stream: No such file or directory in /var/www/bug/subdir/sub.inc on
line 1

Fatal error: require_once() [function.require]: Failed opening required
'../top1.inc' (include_path='.:/usr/share/php:/usr/share/pear') in
/var/www/bug/subdir/sub.inc on line 1

(line difference in the previous comment was because of copy-pasting)

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/46395

-- 
Edit this bug report at http://bugs.php.net/?id=46395&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.