Edit report at https://bugs.php.net/bug.php?id=32503&edit=1

 ID:                 32503
 Comment by:         tata0590 at hotmail dot com
 Reported by:        Bjorn dot Wiberg at its dot uu dot se
 Summary:            fopen() in cwd: filename must start with ./ under
                     safe mode
 Status:             Closed
 Type:               Bug
 Package:            Safe Mode/open_basedir
 Operating System:   IBM AIX 5.2.0.0 ML5
 PHP Version:        5.1.2
 Block user comment: N
 Private report:     N

 New Comment:

thank you so much
terimakasih banyak
I've been searching for this solution for hourssssss..
you saved my life


Previous Comments:
------------------------------------------------------------------------
[2007-01-10 22:54:45] il...@php.net

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.



------------------------------------------------------------------------
[2007-01-09 10:49:49] Bjorn dot Wiberg at its dot uu dot se

Confirmed that with php5.2-200701081330, creating "a.txt" and "./a.txt" now 
works fine as long as the full path all the way to the file has directory 
listing flags (x flags) set.

If the path is obstructed somewhere along the way, one gets:

Warning: fopen(a.txt): failed to open stream: Permission denied in 
/apache/htdocs/bwiberg/test/safemode/write.php on line 5

...which is just fine.

As before, specifying the /full/path/to/the/file always works, without the need 
of directory listing flags along the way.

Thanks for fixing this!

Best regards,
Björn

------------------------------------------------------------------------
[2007-01-07 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------
[2006-12-30 02:36:54] il...@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip



------------------------------------------------------------------------
[2006-01-26 16:52:57] Bjorn dot Wiberg at its dot uu dot se

Hi!

I just confirmed that the same things happen with PHP 5.1.2.

(Somehow my updating of this issue on January 16th seemed to have disappeared.)

Best regards,
Björn

------------------------------------------------------------------------


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

    https://bugs.php.net/bug.php?id=32503


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=32503&edit=1

Reply via email to