#46680 [NEW]: Files created in wrong directory (include path vs current working directory)
From: ant@php.net
Operating system: Windows, Linux
PHP version: 5.3CVS-2008-11-26 (snap)
PHP Bug Type: Filesystem function related
Bug description: Files created in wrong directory (include path vs current working directory)
Description:
------------
The following tests were ported from 5.2.X and do not work as
expected on 5.3. The tests all create a test file and expect it to be
created in an include directory. Instead it looks like the file is
being created elsewhere This particularly affects file_put_contents()
with the FILE_USE_INCLUDE_PATH flag set, and also fopen(...).
Reproduce code:
---------------
See the tests now checked into CVS:
ext/standard/tests/file/file_put_contents_variation4.phpt
ext/standard/tests/file/file_put_contents_variation5.phpt
ext/standard/tests/file/file_put_contents_variation6.phpt
ext/standard/tests/file/fopen_variation5.phpt
ext/standard/tests/file/fopen_variation7.phpt
ext/standard/tests/file/fopen_variation8.phpt
ext/standard/tests/file/fopen_variation9.phpt
ext/standard/tests/file/fopen_variation12.phpt
ext/standard/tests/file/fopen_variation16.phpt
ext/standard/tests/file/fopen_variation17.phpt
Expected result:
----------------
See expected output in the PHPTs.
Actual result:
--------------
See the test results from running the PHPTs.
--
Edit bug report at http://bugs.php.net/?id=46680&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46680&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46680&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46680&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46680&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46680&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=46680&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46680&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46680&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46680&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46680&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46680&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46680&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46680&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46680&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46680&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46680&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46680&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46680&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46680&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46680&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46680&r=mysqlcfg
Thread (10 messages)
- ant@php.net