Mantis - Quercus
Viewing Issue Advanced Details
3396 minor always 03-18-09 14:09 03-18-09 15:51
koreth  
nam  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003396: sscanf %s prints spurious warning on empty string / end-of-string
<?php
sscanf("", "%s", $bar);

This works, but prints a warning both to the log and to the browser:

  Env[] 1 vars passed in but saw only 0 '%' args

The same problem happens if %s occurs at the end of a longer format string which consumes all the characters in the string being scanned.

Notes
(0003898)
nam   
03-18-09 15:51   
php/113o