Bug #13518: sscanf don't like the next character following the field definition.
| From: | bomek at egeolog dot com | Date: | Tue, 02 Oct 2001 18:32:27 +0000 |
| Subject: | Bug #13518: sscanf don't like the next character following the field definition. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-67100@lists.php.net to get a copy of this message | ||
From: bomek@egeolog.com
Operating system: Linux 2.4.9 (redhat 6.2)
PHP version: 4.0.6
PHP Bug Type: Unknown/Other Function
Bug description: sscanf don't like the next character following the field definition.
$string = "aaa:bbb:ccc:ddd";
list($a,$b,$c,$d) = sscanf($string,"%s:%s:%s:%s");
print "$a,$b,$c,$d\n";
$string will be contained in $a instead of being splitted in $a,$b,$c,$d.
--
Edit bug report at: http://bugs.php.net/?id=13518&edit=1