#23956 [NEW]: fopen cannot write in include-path
| From: | markus at scherner dot de | Date: | Mon, 02 Jun 2003 13:19:51 +0000 |
| Subject: | #23956 [NEW]: fopen cannot write in include-path | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-40910@lists.php.net to get a copy of this message | ||
From: markus at scherner dot de
Operating system: win nt, win xp, unix
PHP version: 4.3.2
PHP Bug Type: Filesystem function related
Bug description: fopen cannot write in include-path
Hey everybody.
Today updated php on my local system (win nt) from 4.3.0 to 4.3.2. Now the
function fopen() gives me an error, when I will write a file within the
include path. In the version before, this error does not exist.
I am using following syntax:
$fp =
fopen($maildir.$localmaildir.microstamp().'_'.$email.'.txt',"w",1);
remark for you:
the include-path is set before to a path outside the htdocs-dir. The
command fopen (see above) is called from a function which is included
within the script, the var $maildir.$localmaildir is a dir within the
includedir and all works fine until the update, so it must be a bug (or it
was a bug before and I lived with the bug as well :-) ).
The error output is:
fopen(mail/localmail/105455483215927000_test@test.de.txt): failed to open
stream: No such file or directory in c:\www\casyincs\functions.php on line
1182
The pathes are:
www\casyincs (include dir)
www\casyincs\functions.php (includefile with the command)
www\casyincs\mail\localmail (in this dir have to be saved the file
www\htdocs\index.php (web-directory with executing script)
Hoping for an answer,
best regards and thankyou for a wonderfull powerfull programming
language!!!
best regards
Markus
--
Edit bug report at http://bugs.php.net/?id=23956&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23956&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23956&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23956&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23956&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23956&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23956&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23956&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23956&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23956&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23956&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23956&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23956&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23956&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23956&r=gnused