#38413 [NEW]: ext/standard/tests/file/bug22414.phpt unnecessary code
| From: | chtekk at gentoo dot org | Date: | Thu, 10 Aug 2006 13:11:18 +0000 |
| Subject: | #38413 [NEW]: ext/standard/tests/file/bug22414.phpt unnecessary code | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-100640@lists.php.net to get a copy of this message | ||
From: chtekk at gentoo dot org
Operating system: Gentoo Linux
PHP version: 4.4.3
PHP Bug Type: *General Issues
Bug description: ext/standard/tests/file/bug22414.phpt unnecessary code
Description:
------------
While running the test suite, Gentoo's sandbox (a mechanism to keep the
building and testing of packages separate from the actual system, fex.
denieing random access to files outside the build dir) failed telling me
about a "unlink /passthru_test" in ext/standard/tests/file/bug22414.phpt,
checking that test shows that on both PHP4_4, 5_1 as well as 5_2 branches
it has the following code in it:
@unlink($pwd . '/passthru_test');
That code seems unnecessary and useless to me, as well as incorrect. $pwd
never gets defined or used in any way in the rest of that test, and that
passthru_test file is not used anywhere. Please fix the test by removing
that line, you'll find working diffs for PHP4 and PHP5 at the following
urls:
http://overlays.gentoo.org/proj/php/browser/patches/php-patches/4.4.3/4.4.3/php4.4.3-test_bug22414.patch?format=txt
http://overlays.gentoo.org/proj/php/browser/patches/php-patches/5.1.4/5.1.4/php5.1.4-test_bug22414.patch?format=txt
Expected result:
----------------
A working patch. ;)
--
Edit bug report at http://bugs.php.net/?id=38413&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38413&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38413&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38413&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38413&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=38413&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38413&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38413&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38413&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38413&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38413&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=38413&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=38413&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38413&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38413&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38413&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38413&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38413&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38413&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38413&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38413&r=mysqlcfg