Test: /ext/standard/tests/strings/bug55871.phpt - Version 5.7.0-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 3 different diffs reported by users for this test.

Count Diff
179 (98%)
001+ array(1) {
002+ [0]=>
003+ string(40) "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
004+ }
005+ array(1) {
006+ [0]=>
007+ string(40) "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
008+ }
009+ array(1) {
010+ [0]=>
011+ string(40) "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
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- }
2 (1%)
001+ Segmentation fault
001- Warning: substr_replace(): Argument was modified while replacing in %s on line %d
002- array(0) {
003- }
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 (1%)