ID: 36843 Updated by: [EMAIL PROTECTED] Reported By: tonera at gmail dot com -Status: Open +Status: Assigned -Bug Type: *XML functions +Bug Type: XML related Operating System: windowsxp PHP Version: 5.1.2 -Assigned To: +Assigned To: rrichards
Previous Comments: ------------------------------------------------------------------------ [2006-03-24 10:49:10] tonera at gmail dot com Description: ------------ the code is not run at php5. it send a error: Warning: input conversion failed due to input error in d:\site\wowdkp\test.php on line 28 and return false. but it can return (int)1 at php4. or ,change the words of "gb2312" to "utf-8" .it return 'int(1)' <?php /** +-----------------------------------------------------------------------+ * @autor tonera <tonera at gmail.com>; * @since 2006-3-3 * @version $Id: test.php,v 1.0 tonera$ * @description +-----------------------------------------------------------------------+ */ $parser = xml_parser_create(); $bb= <<<__EOF__ <?xml version="1.0" encoding="gb2312"?> <RaidInfo> <Join> <key35><player>bÖ®´óÕß</player><time>02/21/06 23:56:37</time></key35> </Join> </RaidInfo> __EOF__; xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING,1); xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1); $rs = xml_parse_into_struct($parser, $bb, $values, $tags); var_dump($rs); ?> Reproduce code: --------------- $bb= <<<__EOF__ <?xml version="1.0" encoding="gb2312"?> <RaidInfo> <Join> <key35><player>bÖ®´óÕß</player><time>02/21/06 23:56:37</time></key35> </Join> </RaidInfo> __EOF__; Expected result: ---------------- int(1) Actual result: -------------- Warning: input conversion failed due to input error in d:\site\wowdkp\php\module\admin\mod_Admin.php on line 734 int(0) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36843&edit=1
