|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64753 splfileobject_fwrite_variation_002.phpt output is mangled
Submitted: 2013-05-01 20:12 UTC Modified: -
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: Assigned:
Status: Open Package: Testing related
PHP Version: 5.3Git-2013-05-01 (snap) OS: Windows
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-05-01 20:12 UTC]
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:

Expected result:
string(10) "test_write"

Actual result:
string(14) ""test" 'write'"


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Apr 18 02:01:24 2021 UTC