Test: /ext/standard/tests/general_functions/parse_ini_basic.phpt - Version 5.6.13-dev    

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

Count Diff
1 (50%)
001+ [Mon Aug 10 03:07:22 2015] Script: %s/parse_ini_basic.php'
002+ ---------------------------------------
003+ /home/travis/build/php/php-src/Zend/zend_ini_parser.y(284) : Block 0x03356550 status:
004+ /home/travis/build/php/php-src/Zend/zend_variables.c(37) : Actual location (location was relayed)
005+ Invalid pointer: ((thread_id=0x75665F6C) != (expected=0x8CCD0740))
006+ Segmentation fault
001- array(26) {
002- ["basic"]=>
003- array(15) {
004- ["basicval"]=>
005- string(3) "bar"
006- ["longval"]=>
007- string(5) "12345"
008- ["with.dot"]=>
009- string(7) "fooobar"
010- ["boolon"]=>
011- string(1) "1"
012- ["booltrue"]=>
013- string(1) "1"
014- ["boolyes"]=>
015- string(1) "1"
016- ["booloff"]=>
017- string(0) ""
018- ["boolfalse"]=>
019- string(0) ""
020- ["boolnone"]=>
021- string(0) ""
022- ["boolno"]=>
023- string(0) ""
024- ["string"]=>
025- string(34) "asdadfsdjkslkj ¡@£$$ { }[ ]/%#¤"
026- ["sqstring"]=>
027- string(14) "adsasdadasdasd"
028- ["dqstring"]=>
029- string(51) "asdadfsdjkslkj ¡@£$$ { } !^~|¥¥{[()/)&/% ¤ # #"
030- ["php_constant"]=>
031- string(1) "2"
032- ["user_constant"]=>
033- string(21) "this_is_test_constant"
034- }
035- ["basic with whitespace"]=>
036- array(13) {
037- ["basicval"]=>
038- string(3) "bar"
039- ["longval"]=>
040- string(5) "12345"
041- ["with.dot"]=>
042- string(7) "fooobar"
043- ["boolon"]=>
044- string(1) "1"
045- ["booltrue"]=>
046- string(1) "1"
047- ["boolyes"]=>
048- string(1) "1"
049- ["booloff"]=>
050- string(0) ""
051- ["boolfalse"]=>
052- string(0) ""
053- ["boolnone"]=>
054- string(0) ""
055- ["boolno"]=>
056- string(0) ""
057- ["sqstring"]=>
058- string(14) "adsasdadasdasd"
059- ["dqstring"]=>
060- string(41) "asdadfsdjkslkj ¡@£$$€¥¥{[()/)&/%#¤"
061- ["php_constant"]=>
062- string(1) "2"
063- }
064- ["comments"]=>
065- array(1) {
066- ["somecomment"]=>
067- string(15) "comment follows"
068- }
069- ["variables"]=>
070- array(8) {
071- ["var1"]=>
072- string(14) "FUBAR_VARIABLE"
073- ["var2"]=>
074- string(18) "FUBAR_VARIABLE/foo"
075- ["var3"]=>
076- string(18) "foo/FUBAR_VARIABLE"
077- ["var4"]=>
078- string(22) "foo/FUBAR_VARIABLE/foo"
079- ["quoted_var1"]=>
080- string(21) "FUBAR_QUOTES_VARIABLE"
081- ["quoted_var2"]=>
082- string(25) "FUBAR_QUOTES_VARIABLE/foo"
083- ["quoted_var3"]=>
084- string(25) "foo/FUBAR_QUOTES_VARIABLE"
085- ["quoted_var4"]=>
086- string(29) "foo/FUBAR_QUOTES_VARIABLE/foo"
087- }
088- ["offset values"]=>
089- array(6) {
090- ["foo1"]=>
091- array(2) {
092- [0]=>
093- string(14) "basic offset 1"
094- [1]=>
095- string(14) "basic offset 2"
096- }
097- ["foo2"]=>
098- array(1) {
099- [123]=>
100- string(11) "long offset"
101- }
102- ["foo3"]=>
103- array(1) {
104- ["abc"]=>
105- string(13) "string offset"
106- }
107- ["foo4"]=>
108- array(4) {
109- [0]=>
110- string(15) "quoted offset 1"
111- [" "]=>
112- string(15) "quoted offset 2"
113- ["sqfoobar"]=>
114- string(20) "quoted string offset"
115- ["dqfoobar"]=>
116- string(20) "single quoted offset"
117- }
118- ["foo6"]=>
119- array(4) {
120- ["FUBAR_VARIABLE"]=>
121- string(8) "variable"
122- ["FUBAR_VARIABLE/foo"]=>
123- string(22) "variable with string 1"
124- ["foo/FUBAR_VARIABLE"]=>
125- string(22) "variable with string 2"
126- ["foo/FUBAR_VARIABLE/foo"]=>
127- string(22) "variable with string 3"
128- }
129- ["foo7"]=>
130- array(4) {
131- ["FUBAR_QUOTES_VARIABLE"]=>
132- string(17) "quoted variable 1"
133- ["FUBAR_QUOTES_VARIABLE/foo"]=>
134- string(17) "quoted variable 2"
135- ["foo/FUBAR_QUOTES_VARIABLE"]=>
136- string(17) "quoted variable 3"
137- ["foo/FUBAR_QUOTES_VARIABLE/foo"]=>
138- string(17) "quoted variable 4"
139- }
140- }
141- ["non value"]=>
142- array(4) {
143- ["novalue_option1"]=>
144- string(0) ""
145- ["novalue_option2"]=>
146- string(0) ""
147- ["novalue_option3"]=>
148- string(0) ""
149- ["novalue_option4"]=>
150- array(3) {
151- [0]=>
152- string(0) ""
153- [1]=>
154- string(0) ""
155- [2]=>
156- string(0) ""
157- }
158- }
159- ["Quoted strings and variables in sections"]=>
160- array(0) {
161- }
162- ["FUBAR_VARIABLE"]=>
163- array(0) {
164- }
165- ["FUBAR_VARIABLE/foo"]=>
166- array(0) {
167- }
168- ["foo/FUBAR_VARIABLE"]=>
169- array(0) {
170- }
171- ["foo/FUBAR_VARIABLE/foo"]=>
172- array(0) {
173- }
174- ["FUBAR_QUOTES_VARIABLE"]=>
175- array(0) {
176- }
177- ["FUBAR_QUOTES_VARIABLE/foo"]=>
178- array(0) {
179- }
180- ["foo/FUBAR_QUOTES_VARIABLE"]=>
181- array(0) {
182- }
183- ["foo/FUBAR_QUOTES_VARIABLE/foo"]=>
184- array(0) {
185- }
186- ["PATH=FUBAR_VARIABLE/no/quotes"]=>
187- array(0) {
188- }
189- ["PATH=FUBAR_VARIABLE/all/quoted"]=>
190- array(0) {
191- }
192- ["01"]=>
193- array(2) {
194- ["e"]=>
195- string(1) "e"
196- ["f"]=>
197- string(1) "f"
198- }
199- ["02"]=>
200- array(2) {
201- ["g"]=>
202- string(1) "g"
203- ["h"]=>
204- string(1) "h"
205- }
206- [1]=>
207- array(2) {
208- ["a"]=>
209- string(1) "a"
210- ["b"]=>
211- string(1) "b"
212- }
213- [2]=>
214- array(2) {
215- ["c"]=>
216- string(1) "c"
217- ["d"]=>
218- string(1) "d"
219- }
220- ["0815"]=>
221- array(1) {
222- ["bla"]=>
223- string(3) "bla"
224- }
225- ["bug #43923"]=>
226- array(3) {
227- ["curly1"]=>
228- string(1) "{"
229- ["curly2"]=>
230- string(1) "{"
231- ["curly3"]=>
232- string(1) "{"
233- }
234- ["bug #44019"]=>
235- array(6) {
236- ["concatenation_before"]=>
237- string(37) "this_is_test_constant+some_text_after"
238- ["concatenation_middle"]=>
239- string(54) "some_text_before+this_is_test_constant+some_text_after"
240- ["concatenation_after"]=>
241- string(38) "some_text_before+this_is_test_constant"
242- ["concatenation_nows_before"]=>
243- string(37) "this_is_test_constant+some_text_after"
244- ["concatenation_nows_middle"]=>
245- string(54) "some_text_before+this_is_test_constant+some_text_after"
246- ["concatenation_nows_after"]=>
247- string(38) "some_text_before+this_is_test_constant"
248- }
249- ["bug #43915"]=>
250- array(3) {
251- ["ini_with-hyphen"]=>
252- string(26) "with hyphen and underscore"
253- ["ini.with-hyphen"]=>
254- string(14) "dot and hyphen"
255- ["ini-with.hyphen"]=>
256- string(14) "hyphen and dot"
257- }
258- ["windows paths"]=>
259- array(2) {
260- ["winpath1"]=>
261- string(69) "c:\some windows\path\test\new\r\quote " here\single ' quote\some more"
262- ["winpath2"]=>
263- string(13) "special case\"
264- }
265- }
266- Done.
1 (50%)
001+ Segmentation fault
001- array(26) {
002- ["basic"]=>
003- array(15) {
004- ["basicval"]=>
005- string(3) "bar"
006- ["longval"]=>
007- string(5) "12345"
008- ["with.dot"]=>
009- string(7) "fooobar"
010- ["boolon"]=>
011- string(1) "1"
012- ["booltrue"]=>
013- string(1) "1"
014- ["boolyes"]=>
015- string(1) "1"
016- ["booloff"]=>
017- string(0) ""
018- ["boolfalse"]=>
019- string(0) ""
020- ["boolnone"]=>
021- string(0) ""
022- ["boolno"]=>
023- string(0) ""
024- ["string"]=>
025- string(34) "asdadfsdjkslkj ¡@£$$ { }[ ]/%#¤"
026- ["sqstring"]=>
027- string(14) "adsasdadasdasd"
028- ["dqstring"]=>
029- string(51) "asdadfsdjkslkj ¡@£$$ { } !^~|¥¥{[()/)&/% ¤ # #"
030- ["php_constant"]=>
031- string(1) "2"
032- ["user_constant"]=>
033- string(21) "this_is_test_constant"
034- }
035- ["basic with whitespace"]=>
036- array(13) {
037- ["basicval"]=>
038- string(3) "bar"
039- ["longval"]=>
040- string(5) "12345"
041- ["with.dot"]=>
042- string(7) "fooobar"
043- ["boolon"]=>
044- string(1) "1"
045- ["booltrue"]=>
046- string(1) "1"
047- ["boolyes"]=>
048- string(1) "1"
049- ["booloff"]=>
050- string(0) ""
051- ["boolfalse"]=>
052- string(0) ""
053- ["boolnone"]=>
054- string(0) ""
055- ["boolno"]=>
056- string(0) ""
057- ["sqstring"]=>
058- string(14) "adsasdadasdasd"
059- ["dqstring"]=>
060- string(41) "asdadfsdjkslkj ¡@£$$€¥¥{[()/)&/%#¤"
061- ["php_constant"]=>
062- string(1) "2"
063- }
064- ["comments"]=>
065- array(1) {
066- ["somecomment"]=>
067- string(15) "comment follows"
068- }
069- ["variables"]=>
070- array(8) {
071- ["var1"]=>
072- string(14) "FUBAR_VARIABLE"
073- ["var2"]=>
074- string(18) "FUBAR_VARIABLE/foo"
075- ["var3"]=>
076- string(18) "foo/FUBAR_VARIABLE"
077- ["var4"]=>
078- string(22) "foo/FUBAR_VARIABLE/foo"
079- ["quoted_var1"]=>
080- string(21) "FUBAR_QUOTES_VARIABLE"
081- ["quoted_var2"]=>
082- string(25) "FUBAR_QUOTES_VARIABLE/foo"
083- ["quoted_var3"]=>
084- string(25) "foo/FUBAR_QUOTES_VARIABLE"
085- ["quoted_var4"]=>
086- string(29) "foo/FUBAR_QUOTES_VARIABLE/foo"
087- }
088- ["offset values"]=>
089- array(6) {
090- ["foo1"]=>
091- array(2) {
092- [0]=>
093- string(14) "basic offset 1"
094- [1]=>
095- string(14) "basic offset 2"
096- }
097- ["foo2"]=>
098- array(1) {
099- [123]=>
100- string(11) "long offset"
101- }
102- ["foo3"]=>
103- array(1) {
104- ["abc"]=>
105- string(13) "string offset"
106- }
107- ["foo4"]=>
108- array(4) {
109- [0]=>
110- string(15) "quoted offset 1"
111- [" "]=>
112- string(15) "quoted offset 2"
113- ["sqfoobar"]=>
114- string(20) "quoted string offset"
115- ["dqfoobar"]=>
116- string(20) "single quoted offset"
117- }
118- ["foo6"]=>
119- array(4) {
120- ["FUBAR_VARIABLE"]=>
121- string(8) "variable"
122- ["FUBAR_VARIABLE/foo"]=>
123- string(22) "variable with string 1"
124- ["foo/FUBAR_VARIABLE"]=>
125- string(22) "variable with string 2"
126- ["foo/FUBAR_VARIABLE/foo"]=>
127- string(22) "variable with string 3"
128- }
129- ["foo7"]=>
130- array(4) {
131- ["FUBAR_QUOTES_VARIABLE"]=>
132- string(17) "quoted variable 1"
133- ["FUBAR_QUOTES_VARIABLE/foo"]=>
134- string(17) "quoted variable 2"
135- ["foo/FUBAR_QUOTES_VARIABLE"]=>
136- string(17) "quoted variable 3"
137- ["foo/FUBAR_QUOTES_VARIABLE/foo"]=>
138- string(17) "quoted variable 4"
139- }
140- }
141- ["non value"]=>
142- array(4) {
143- ["novalue_option1"]=>
144- string(0) ""
145- ["novalue_option2"]=>
146- string(0) ""
147- ["novalue_option3"]=>
148- string(0) ""
149- ["novalue_option4"]=>
150- array(3) {
151- [0]=>
152- string(0) ""
153- [1]=>
154- string(0) ""
155- [2]=>
156- string(0) ""
157- }
158- }
159- ["Quoted strings and variables in sections"]=>
160- array(0) {
161- }
162- ["FUBAR_VARIABLE"]=>
163- array(0) {
164- }
165- ["FUBAR_VARIABLE/foo"]=>
166- array(0) {
167- }
168- ["foo/FUBAR_VARIABLE"]=>
169- array(0) {
170- }
171- ["foo/FUBAR_VARIABLE/foo"]=>
172- array(0) {
173- }
174- ["FUBAR_QUOTES_VARIABLE"]=>
175- array(0) {
176- }
177- ["FUBAR_QUOTES_VARIABLE/foo"]=>
178- array(0) {
179- }
180- ["foo/FUBAR_QUOTES_VARIABLE"]=>
181- array(0) {
182- }
183- ["foo/FUBAR_QUOTES_VARIABLE/foo"]=>
184- array(0) {
185- }
186- ["PATH=FUBAR_VARIABLE/no/quotes"]=>
187- array(0) {
188- }
189- ["PATH=FUBAR_VARIABLE/all/quoted"]=>
190- array(0) {
191- }
192- ["01"]=>
193- array(2) {
194- ["e"]=>
195- string(1) "e"
196- ["f"]=>
197- string(1) "f"
198- }
199- ["02"]=>
200- array(2) {
201- ["g"]=>
202- string(1) "g"
203- ["h"]=>
204- string(1) "h"
205- }
206- [1]=>
207- array(2) {
208- ["a"]=>
209- string(1) "a"
210- ["b"]=>
211- string(1) "b"
212- }
213- [2]=>
214- array(2) {
215- ["c"]=>
216- string(1) "c"
217- ["d"]=>
218- string(1) "d"
219- }
220- ["0815"]=>
221- array(1) {
222- ["bla"]=>
223- string(3) "bla"
224- }
225- ["bug #43923"]=>
226- array(3) {
227- ["curly1"]=>
228- string(1) "{"
229- ["curly2"]=>
230- string(1) "{"
231- ["curly3"]=>
232- string(1) "{"
233- }
234- ["bug #44019"]=>
235- array(6) {
236- ["concatenation_before"]=>
237- string(37) "this_is_test_constant+some_text_after"
238- ["concatenation_middle"]=>
239- string(54) "some_text_before+this_is_test_constant+some_text_after"
240- ["concatenation_after"]=>
241- string(38) "some_text_before+this_is_test_constant"
242- ["concatenation_nows_before"]=>
243- string(37) "this_is_test_constant+some_text_after"
244- ["concatenation_nows_middle"]=>
245- string(54) "some_text_before+this_is_test_constant+some_text_after"
246- ["concatenation_nows_after"]=>
247- string(38) "some_text_before+this_is_test_constant"
248- }
249- ["bug #43915"]=>
250- array(3) {
251- ["ini_with-hyphen"]=>
252- string(26) "with hyphen and underscore"
253- ["ini.with-hyphen"]=>
254- string(14) "dot and hyphen"
255- ["ini-with.hyphen"]=>
256- string(14) "hyphen and dot"
257- }
258- ["windows paths"]=>
259- array(2) {
260- ["winpath1"]=>
261- string(69) "c:\some windows\path\test\new\r\quote " here\single ' quote\some more"
262- ["winpath2"]=>
263- string(13) "special case\"
264- }
265- }
266- Done.