php.net |  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: -
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: mattficken@php.net 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] mattficken@php.net
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'"


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Jun 18 14:01:26 2019 UTC