#45044 [Opn->Fbk]: PHP doesn't resolve relative path correctly
| From: | cellog@php.net | Date: | Tue, 20 May 2008 02:44:44 +0000 |
| Subject: | #45044 [Opn->Fbk]: PHP doesn't resolve relative path correctly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-125129@lists.php.net to get a copy of this message | ||
ID: 45044
Updated by: cellog@php.net
Reported By: felipensp at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: FreeBSD 6.3
PHP Version: 5.3CVS-2008-05-20 (CVS)
New Comment:
cellog@lot-49:/home$ cd felipe
cellog@lot-49:/home/felipe$ mkdir test
cellog@lot-49:/home/felipe$ cd test
cellog@lot-49:/home/felipe/test$ echo "<?php include 'foo.php'; ?>"
>>
test.php
cellog@lot-49:/home/felipe/test$ echo "foobar" >> foo.php
cellog@lot-49:/home/felipe/test$ cd ..
cellog@lot-49:/home/felipe$ ../cellog/workspace/php5/sapi/cli/php
test/test.php
foobar
I am on linux. I suspect zend_resolve_path is broken on FreeBSD and
this is part of the segfault you described in phar on IRC.
Can we find another FreeBSDer to confirm this?
Previous Comments:
------------------------------------------------------------------------
[2008-05-20 01:27:00] felipensp at gmail dot com
Description:
------------
I've created:
~/test
~/test/test.php: <?php include 'foo.php'; ?>
~/test/foo.php: "foobar"
Due this issue all tests (.phpt) that uses include/require fails.
PS: This works fine on 5_2.
Reproduce code:
---------------
[felipe@PCBSD ~]$ php5/sapi/cli/php test/test.php
Expected result:
----------------
foobar
Actual result:
--------------
Warning: include_once(/usr/home/felipe/foo.php): failed to open
stream: No such file or directory in /usr/home/felipe/test/test.php
on line 6
Warning: include_once(): Failed opening 'foo.php' for inclusion
(include_path='.:/usr/local/lib/php')
in /usr/home/felipe/test/test.php on line 6
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45044&edit=1