From: mattficken Operating system: Windows PHP version: 5.3Git-2013-05-01 (snap) Package: Testing related Bug Type: Bug Bug description:splfileobject_fwrite_variation_002.phpt output is mangled
Description: ------------ Output ext/spl/tests/splfileobject_fwrite_variation_002.phpt (from file_get_contents) is mangled (see actual result). This occurs with 5.3.25rc1 and 5.3 snapshots when run on Apache-mod_php (ApacheLounge-2.4.4-vc9) with and without Opcache-7.01. The test uses SplFileObject::fwrite to write to a file and then reads its contents using file_get_contents for the test's expected output. The returned result is mangled (too long; extra " are added and ' ' is replaced with '_'). Test script: --------------- ext/spl/tests/splfileobject_fwrite_variation_002.phpt Expected result: ---------------- string(10) "test_write" Actual result: -------------- string(14) ""test" 'write'" -- Edit bug report at https://bugs.php.net/bug.php?id=64753&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64753&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64753&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64753&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64753&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64753&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64753&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64753&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64753&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64753&r=support Expected behavior: https://bugs.php.net/fix.php?id=64753&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64753&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64753&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64753&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64753&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64753&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64753&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64753&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64753&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64753&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64753&r=mysqlcfg