Return to bug27295.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / strings |
1.1 misho 1: --TEST-- 2: Bug #27295 (memory leak inside sscanf()) 3: --FILE-- 4: <?php 5: $strings = array("foo = bar", "bar = foo"); 6: foreach( $strings as $string ) 7: { 8: sscanf( $string, "%s = %[^[]]", $var, $val ); 9: echo "$var = $val\n"; 10: } 11: ?> 12: --EXPECT-- 13: foo = bar 14: bar = foo