|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-10-26 11:09 UTC] jani@php.net
[2012-08-28 03:37 UTC] datibbaw@php.net
[2012-08-28 06:07 UTC] mail at bodograumann dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 04:00:02 2025 UTC |
Description: ------------ sscanf does not work with %b in the format string. PHP 5.2.6-pl7-gentoo (cli) (built: Sep 27 2008 23:46:17) Linux version 2.6.24-tuxonice-r9 (gcc version 4.1.2 (Gentoo 4.1.2)) #1 SMP PREEMPT Fri Oct 3 11:58:28 CEST 2008 USE-flags: apache2 bcmath berkdb bzip2 cli crypt ctype curl gd gdbm hash iconv ipv6 mysql mysqli ncurses nls pcre readline reflection session sockets spell spl ssl truetype unicode xml zlib other people on freenode#php have the same issue for example with php-5.2.4-2ubuntu5.3 on Linux dev 2.6.24-19-386 #1 Wed Aug 20 21:59:50 UTC 2008 i686 GNU/Linux Reproduce code: --------------- echo sscanf("01010101", "%b"); Expected result: ---------------- It should output "85". Actual result: -------------- Warning: sscanf(): Bad scan conversion character "b" in php shell code on line 1 Call Stack: 3740.1460 179568 1. {main}() php shell code:0 3740.1460 179568 2. sscanf() php shell code:1