Edit report at https://bugs.php.net/bug.php?id=64753&edit=1
ID: 64753
Updated by: [email protected]
Reported by: [email protected]
Summary: splfileobject_fwrite_variation_002.phpt output is
mangled
-Status: Open
+Status: Closed
Type: Bug
Package: Testing related
Operating System: Windows
PHP Version: 5.3Git-2013-05-01 (snap)
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This test runs fine for me locally, and also on AppVeyor[1], so
apparently this issue has been fixed in the meantime.
[1] <https://ci.appveyor.com/project/php/php-src/builds/40395836/job/c7knpnto0nke25c8/artifacts>
Previous Comments:
------------------------------------------------------------------------
[2013-05-01 20:12:39] [email protected]
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 this bug report at https://bugs.php.net/bug.php?id=64753&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.