|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-02-20 02:39 UTC] lepage at grm dot polymtl dot ca
Description: ------------ Since I upgraded from php 5.1.5 to php 5.20 and now php 5.21, I got serious errors that is not present in php 5.1.5. Users installation of phpBB and phpAlbum does not work anymore. I have look for many hours with finding a solution. While phpAlbum is working fine in the web server root directory, phpAlbum installed under users directories does not work anymore. It is like it's not able to include files under user directories. Reproduce code: --------------- see and try phpBB.com or phpAlbum.net in a user directory. Expected result: ---------------- I would expect php 5.2x to work better that this. Or a more comprenhensive error message saying why it cannot open a file in the current directory. I would be nice to find upgrade informations in the FAQ from 5.1x to 5.2x, I have look and find nothing about includes. Actual result: -------------- ---error-start---- Warning: fopen(data_rejdshflkj/writablity_test) [function.fopen]: failed to open stream: No such file or directory in /home/lepage/HTML/avendre/main.php on line 1886 Warning: fclose(): supplied argument is not a valid stream resource in /home/lepage/HTML/avendre/main.php on line 1887 Notice: Undefined variable: phpalbum_version in /home/lepage/HTML/avendre/main.php on line 36 Welcome to phpAlbum_ Your data directory data_rej123/ is eather not existing or not writable Please check for existing of this directory and setup the access rights with CHMOD 777 ---error-end---- ** This error is not limited to phpAlbum since it does the same kind of error with phpBB installed in users directories, here is an example of the errors, ---error-start---- Warning: include(./extension.inc) [function.include]: failed to open stream: No such file or directory in /home/pyrobert/HTML/Forum/index.php on line 25 Warning: include() [function.include]: Failed opening './extension.inc' for inclusion (include_path='.:/usr/local_9/opt/php/lib/php:/php/includes:/home/lepage/HTML/avendre:~lepage/avendre') in /home/pyrobert/HTML/Forum/index.php on line 25 Notice: Undefined variable: phpEx in /home/pyrobert/HTML/Forum/index.php on line 26 Warning: include(./common.) [function.include]: failed to open stream: No such file or directory in /home/pyrobert/HTML/Forum/index.php on line 26 Warning: include() [function.include]: Failed opening './common.' for inclusion (include_path='.:/usr/local_9/opt/php/lib/php:/php/includes') in /home/pyrobert/HTML/Forum/index.php on line 26 Fatal error: Call to undefined function session_pagestart() in /home/pyrobert/HTML/Forum/index.php on line 31 ---error-end---- I have tryed to add user directories to include_path in the php.ini but it does not work. I have looked for changes that could explain that, none are found. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 17 04:00:01 2025 UTC |
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...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.