Test: /ext/standard/tests/strings/bug55871.phpt - Version 5.4.0beta2-dev        

Security #55871 Interruption in substr_replace()
Submitted: 2011-10-08 09:38:01 Modified: 2015-04-26 12:52:42
From: worawita Assigned: stas
Status: Closed Package: Strings related
PHP Version: 5.3 OS: *

There are 2 different diffs reported by users for this test.

Count Diff
1 (50%)
001+ array(1) {
002+ [0]=>
003+ string(40) "[0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0]H�� �[0x0][0x0]H�� �[0x0][0x0]"
001- Warning: substr_replace(): Argument was modified while replacing in %s on line %d
002- array(0) {
004-
005- Warning: substr_replace(): Argument was modified while replacing in %s on line %d
006- array(0) {
007- }
008-
009- Warning: substr_replace(): Argument was modified while replacing in %s on line %d
010- array(0) {
011- }
1 (50%)
001+ array(1) {
002+ [0]=>
003+ string(40) "[0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0]H�,[0x0][0x0]H�,[0x0][0x0]"
001- Warning: substr_replace(): Argument was modified while replacing in %s on line %d
002- array(0) {
004-
005- Warning: substr_replace(): Argument was modified while replacing in %s on line %d
006- array(0) {
007- }
008-
009- Warning: substr_replace(): Argument was modified while replacing in %s on line %d
010- array(0) {
011- }