Bug #10639 Updated: include() & require()

From: Date: Tue, 10 Jul 2001 17:53:49 +0000
Subject: Bug #10639 Updated: include() & require()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-59586@lists.php.net to get a copy of this message
ID: 10639 Updated by: jeroen Reported By: sb@bpm.ch Old Status: Open Status: Closed Bug Type: Scripting Engine problem Operating System: AIX 4.3.3 PHP Version: 4.0.4pl1 New Comment: Stephan emailed me: > The problem is solved in Version 4.0.5 compiled with GCC. So closing Previous Comments: ------------------------------------------------------------------------ [2001-07-09 08:36:00] jeroen@php.net Could you submit the results when test.inc: - is chmod a-r - is chmod a+r ? Apparently PHP crashes trying to open the file. Try also, in stead of th include(), a $fp = fopen('test.inc'); echo fread($fp,filesize('test.inc')); fclose($fp); To see wether the problem is in the include() or simply in opening of the file. This also with word-readable on/off. ------------------------------------------------------------------------ [2001-05-10 14:17:01] sb@bpm.ch Just for information: 1. I've updated AIX 4.3.3 now to the Maintenance-Level 8 (the latest one). But the problem is unchanged. 2. I'm using the binary package: php-4.0.4pl1-1.aix4.3.ppc.rpm from: ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/php --stephan ------------------------------------------------------------------------ [2001-05-10 14:00:20] sb@bpm.ch In /var/opt/freeware/apache/logs/error_log i've found the following error: [Thu May 10 19:41:41 2001] [notice] child pid 5444 exit signal Illegal instruction (4) Every time when i try the test.php with the included file this error occurs. -- Stephan ------------------------------------------------------------------------ [2001-05-10 13:42:42] sb@bpm.ch Without the test.inc file i've got the following lines: this is a test Warning: Failed opening 'test.inc' for inclusion (include_path='.:/opt/freeware/lib/php') in /usr/opt/freeware/apache/share/htdocs/test.php on line 4 With the test.inc file i've got only the IE error, that this page is not available. -- Stephan ------------------------------------------------------------------------ [2001-05-10 06:00:45] sniper@php.net Try this script: <?php echo "this is a test"; error_reporting(E_ALL); include("test.inc"); ?> Any errors reported? In error_log maybe? --Jani ------------------------------------------------------------------------ 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/?id=10639 ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10639&edit=1

« previous php.dev (#59586) next »