--TEST-- Test sscanf() function : usage variations - unexpected inputs for '$str' argument --FILE-- ===DONE=== --EXPECTF-- *** Testing sscanf() function: with unexpected inputs for 'str' argument *** -- Iteration 1 -- array(1) { [0]=> unicode(1) "0" } -- Iteration 2 -- array(1) { [0]=> unicode(1) "1" } -- Iteration 3 -- array(1) { [0]=> unicode(2) "-2" } -- Iteration 4 -- array(1) { [0]=> unicode(10) "2147483647" } -- Iteration 5 -- array(1) { [0]=> unicode(11) "-2147483648" } -- Iteration 6 -- array(1) { [0]=> unicode(4) "10.5" } -- Iteration 7 -- array(1) { [0]=> unicode(5) "-20.5" } -- Iteration 8 -- array(1) { [0]=> unicode(12) "101234567000" } -- Iteration 9 -- Warning: sscanf() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d NULL -- Iteration 10 -- Warning: sscanf() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d NULL -- Iteration 11 -- Warning: sscanf() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d NULL -- Iteration 12 -- array(1) { [0]=> unicode(1) "1" } -- Iteration 13 -- NULL -- Iteration 14 -- array(1) { [0]=> unicode(1) "1" } -- Iteration 15 -- NULL -- Iteration 16 -- NULL -- Iteration 17 -- NULL -- Iteration 18 -- array(1) { [0]=> unicode(6) "sample" } -- Iteration 19 -- Warning: sscanf() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d NULL -- Iteration 20 -- NULL -- Iteration 21 -- NULL ===DONE===