ID:               40552
 User updated by:  lepage at grm dot polymtl dot ca
 Reported By:      lepage at grm dot polymtl dot ca
 Status:           Open
 Bug Type:         Unknown/Other Function
 Operating System: Solaris 9
 PHP Version:      5.2.1
 New Comment:

note that if I use 
  include('/home/lepage/HTML/include.inc');
it does work while using 
  include('./include.inc'); 
does not work.

It was woking fine in php-5.1.5 and not in php-5.2.0 nor php-5.2.1, I
see in change log :

- Removed current working directory from the php.ini search path for
CLI and re-added it for other SAPIs (restore to pre 5.1.x behavior).
(Edin)

may be it was not well restore... I don't know. Can you please help me
fix this. it cause many problem with user installed phpBB and phpAlbum.


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

[2007-02-22 01:21:53] lepage at grm dot polymtl dot ca

Here is the error, While it is not working in a user directory it does
in the web root directory.

=== file info.php ===
<?php
include('./include.inc');
include('include.inc');
phpinfo();

?>

=== file include.inc ===
allo...
<?php
/* allo
 *
 * nothing really */
?>

-----

Warning: include(./include.inc) [function.include]: failed to open
stream: No such file or directory in /home/lepage/HTML/info.php on line
3

Warning: include() [function.include]: Failed opening './include.inc'
for inclusion
(include_path='/usr/local_9/opt/php/lib/php:/php/includes:.') in
/home/lepage/HTML/info.php on line 3
allo...
and then the php_info() output.


==
I found odd that I have to code since I am a sysAdmin trying to update
php to latest, I am not a php coder and therefore it should be easier
for SysAdmin to update php to the latest...

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

[2007-02-21 08:06:52] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.



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

[2007-02-21 02:40:03] lepage at grm dot polymtl dot ca

Although I have '.' in include_path =
"/usr/local_9/opt/php/lib/php:/php/includes:."
it is not opening file when preceded by ./

for one example in phpBB it's define $phpbb_root_path = './'
and it does not work unless I redefine it to 
$phpbb_root_path = '/some/absolute/path/' then it work.

Again it was working in 5.1.5 and not in 5.2.0, it is a bug, dot in
search path is no longer working.

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

[2007-02-21 02:12:40] lepage at grm dot polymtl dot ca

It is working with php 5.1.5 not with 5.2.x using the exact same config
file (php.ini).

It's like php 5.2x is not chdir to the script dir when running the
script. 

Information about this should be included into the php upgrade
documentation (from 5.1x to 5.2x). I have looked at many bugs like
#30881 but it's too old.. my problem is it was working with version
5.1.5.

It is still not working... what did change from 5.1.5 to 5.2 that can
cause that?

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

[2007-02-21 00:04:28] lepage at grm dot polymtl dot ca

I have search for this bug for so long, I waited the new version 5.2.1
and it still has this problem.

All the search on google I made with those errors, actually  give me
web site that are not working and display those errors... so I think
it's a bug... At least in the documentation since I found nothing.

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

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/40552

-- 
Edit this bug report at http://bugs.php.net/?id=40552&edit=1

Reply via email to