#33052 [NEW]: can not open php documents
| From: | sofienba at hotmail dot com | Date: | Wed, 18 May 2005 10:41:14 +0000 |
| Subject: | #33052 [NEW]: can not open php documents | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-79129@lists.php.net to get a copy of this message | ||
From: sofienba at hotmail dot com
Operating system: Unix SCO5
PHP version: 5.0.4
PHP Bug Type: Apache related
Bug description: can not open php documents
Description:
------------
Warning: Unknown: failed to open stream: Permission denied in Unknown on
line 0
Warning: Unknown: Failed opening '/usr/local/apache/sba/test2.php' for
inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0
the problem is encounterd with all php files
Reproduce code:
---------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Sans Titre</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"
/>
<meta name="generator" content="HAPedit 3.1">
</head>
<body bgcolor="#FFFFFF">
<pre>
<?
// Your code here
echo "<hr />\n".
"HAPedit 3.1.11.111 (mai 2005 14:46:29)\n";
print_r ($_POST);
print_r ($_GET);
print_r ($_FILES);
$toto=fopen( $_FILES['userfile'][tmp_name],'r');
echo fgets ($toto,100);
?>
</pre>
</body>
</html>
Expected result:
----------------
HAPedit 3.1.11.111 (mai 2005 14:46:29)
Array
(
)
Array
(
)
Array
(
)
.........
Actual result:
--------------
Warning: Unknown: failed to open stream: Permission denied in Unknown on
line 0
Warning: Unknown: Failed opening '/usr/local/apache/sba/test2.php' for
inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0
the problem is encounterd with all php files
--
Edit bug report at http://bugs.php.net/?id=33052&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33052&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33052&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33052&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33052&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33052&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33052&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33052&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33052&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33052&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33052&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33052&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33052&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33052&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33052&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33052&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33052&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33052&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33052&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33052&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33052&r=mysqlcfg