#48526 [NEW]: When using the b flag i get a error: Warning: fopen(/tmp/12/foo2.txt
From: jason at ovitech dot nl
Operating system: OSX
PHP version: 5.2.9
PHP Bug Type: Filesystem function related
Bug description: When using the b flag i get a error: Warning: fopen(/tmp/12/foo2.txt
Description:
------------
When I open a file with the b flag in it. for example bw I get the error
that the file does not exists. That is correct and I want fopen to create
the file for me and set the pointer on the beginning of the code. that is
why I use the w flag. I have used the b flag because of the note that is
underneath the fopen manual file on the site./
Reproduce code:
---------------
$fp = fopen($this->_file, "bw");
Expected result:
----------------
A new file created in /tmp/12 called foo2.txt
Actual result:
--------------
Warning: fopen(/tmp/12/foo2.txt) [function.fopen]: failed to open stream:
No such file or directory in /Users/jason/Sites/zf/myclass.php on line 168
--
Edit bug report at http://bugs.php.net/?id=48526&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48526&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48526&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48526&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48526&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48526&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48526&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48526&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48526&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48526&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48526&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48526&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48526&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48526&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48526&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48526&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48526&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48526&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48526&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48526&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48526&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48526&r=mysqlcfg
Thread (3 messages)
- jason at ovitech dot nl