Date: 07/31/01
- Next message: g.r.wood <email protected>: "[PHP-DEV] Bug #12498: cant config magic_quotes_off"
- Previous message: sniper <email protected>: "[PHP-DEV] Bug #11934 Updated: failure to configure --with-imap-ssl"
- In reply to: willwong <email protected>: "[PHP-DEV] Bug #12444: require_once doesn't support relative paths completely"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 12444
Updated by: sniper
Reported By: willwong <email protected>
Old Status: Open
Status: Feedback
Bug Type: Feature/Change Request
Operating System: FreeBSD
PHP Version: 4.0.6
New Comment:
Could you please try the latest CVS snapshot from
http://snaps.php.net since some changes to this were made.
--Jani
Previous Comments:
------------------------------------------------------------------------
[2001-07-28 01:05:09] willwong <email protected>
I was unable to alter the previous report because I had not entered a password when I reported the bug...
It appears to work in simple cases:
ie when:
/php/test.php
/common.php
in test.php
<?
require_once('../common.php');
display_test();
?>
in common.php
<?
function display_test()
{
echo 'test';
}
?>
But it fails in the following case:
/usr/home/willwong/public_html/common.php
/usr/home/willwong/public_html/php/common2.php
/usr/home/willwong/public_html/php/php2/test.php
in test.php
<?
require_once('../../common.php');
display_test();
?>
in common.php
<?
require_once('php/common2.php');
?>
in common2.php
<?
function display_test()
{
echo 'test';
}
?>
This fails with the error:
Fatal error: Failed opening required 'php/common2.php' (include_path='') in /usr/home/willwong/public_html/common.php on line 2
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12444&edit=1
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: g.r.wood <email protected>: "[PHP-DEV] Bug #12498: cant config magic_quotes_off"
- Previous message: sniper <email protected>: "[PHP-DEV] Bug #11934 Updated: failure to configure --with-imap-ssl"
- In reply to: willwong <email protected>: "[PHP-DEV] Bug #12444: require_once doesn't support relative paths completely"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

