From: pav at oook dot cz Operating system: FreeBSD PHP version: 5.2.0 PHP Bug Type: SOAP related Bug description: int values with leading zeroes
Description: ------------ I'm not totally convinced this is a valid SOAP, but anyway. I'm getting this from a SOAP::Lite server: <inventory_number xsi:type="xsd:int">0022300455</inventory_number> The value in PHP comes up as 4817197. The problem is that to_zval_long() calls strtol() with base 'zero', and libc function strtol() understands 0x* as hex (base 16) and 00* as octal (base 8) number, if base is unspecified (zero). The fix here would be to change strtol() call to use base 10. Unless octal and hex representation of int is allowed in this datatype by specs. I might also go to see why SOAP::Lite is tagging this as xsd:int instead of xsd:string. What do you think about this, dmitry? -- Edit bug report at http://bugs.php.net/?id=40020&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40020&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40020&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40020&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40020&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40020&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40020&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40020&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40020&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40020&r=support Expected behavior: http://bugs.php.net/fix.php?id=40020&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40020&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40020&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40020&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40020&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40020&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40020&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40020&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40020&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40020&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40020&r=mysqlcfg