--TEST-- Test debug_zval_dump() function : usage variations --INI-- allow_call_time_pass_reference=1 --FILE-- --EXPECTF-- Deprecated: Call-time pass-by-reference has been deprecated in %s on line %d *** Testing debug_zval_dump() on functions *** --- Variation 1: global variable inside a function --- -- Value of global variable, before calling dump_globalvar() -- long(10) refcount(2) -- Value of local variable inside dump_globalvar() -- long(10) refcount(1) -- Value of global variable inside dump_globalvar() -- long(10) refcount(1) -- Value of global variable, after exiting dump_globalvar() -- long(10) refcount(2) --- Variation 2: one variable references another --- -- Value of $first_var: -- long(10) refcount(2) -- Value of $ref_first_var -- NULL refcount(1) -- Value of $first_var -- long(10) refcount(2) -- Value of $ref_first_var -- Notice: Undefined variable: ref_first_var in %s on line %d NULL refcount(1) -- Value of $first_var -- long(10) refcount(2) --- Variation 3: multiple references of variables --- -- Value of $var_1: (before referencing) -- long(10) refcount(1) -- Value of $var_2: (referencing var_1) -- long(10) refcount(1) -- Value of $var_3: (referencing var_2) -- long(10) refcount(1) -- Value of $var_3: (after unsetting var_3) -- Notice: Undefined variable: var_3 in %s on line %d NULL refcount(1) -- Value of $var_2: -- long(10) refcount(1) -- Value of $var_3: -- long(10) refcount(1) -- Value of $var_1: (after unsetting variable_1) -- Notice: Undefined variable: var_1 in %s on line %d NULL refcount(1) -- Value of $var_2: -- long(10) refcount(2) *** Testing debug_zval_dump() on miscelleneous input arguments *** -- Iteration 1 -- NULL refcount(3) &NULL refcount(2) -- Iteration 2 -- NULL refcount(3) &NULL refcount(2) -- Iteration 3 -- NULL refcount(1) &NULL refcount(2) -- Iteration 4 -- NULL refcount(1) &NULL refcount(2) -- Iteration 5 -- unicode(7) "TRUE123" { 0054 0052 0055 0045 0031 0032 0033 } refcount(3) &unicode(7) "TRUE123" { 0054 0052 0055 0045 0031 0032 0033 } refcount(2) -- Iteration 6 -- unicode(9) "123string" { 0031 0032 0033 0073 0074 0072 0069 006e 0067 } refcount(3) &unicode(9) "123string" { 0031 0032 0033 0073 0074 0072 0069 006e 0067 } refcount(2) -- Iteration 7 -- unicode(9) "string123" { 0073 0074 0072 0069 006e 0067 0031 0032 0033 } refcount(3) &unicode(9) "string123" { 0073 0074 0072 0069 006e 0067 0031 0032 0033 } refcount(2) -- Iteration 8 -- unicode(10) "NULLstring" { 004e 0055 004c 004c 0073 0074 0072 0069 006e 0067 } refcount(3) &unicode(10) "NULLstring" { 004e 0055 004c 004c 0073 0074 0072 0069 006e 0067 } refcount(2) Done