[PHP-CVS] cvs: php-src /ext/json JSON_parser.c

2009-05-19 Thread Kalle Sommer Nielsen
kalle Tue May 19 16:06:17 2009 UTC Modified files: /php-src/ext/json JSON_parser.c Log: MFB: Cast to unsigned char to prevent compiler warning http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.26&r2=1.27&diff_format=u Index: php-src/ext/json/

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c JSON_parser.h json.c

2009-05-13 Thread Scott MacVicar
scottmacThu May 14 00:13:57 2009 UTC Modified files: /php-src/ext/json JSON_parser.c JSON_parser.h json.c Log: Allow the json_decode() depth to be any size, but keep the static one around for now. It might make sense to allow an unbound depth. h

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c

2009-03-19 Thread Matt Wilmas
mattwil Thu Mar 19 19:25:42 2009 UTC Modified files: /php-src/ext/json JSON_parser.c Log: Avoid 2 conversions when decoding numbers http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.24&r2=1.25&diff_format=u Index: php-src/ext/json/JSON_parser.c

Re: [PHP-CVS] cvs: php-src /ext/json JSON_parser.c

2009-03-17 Thread Scott MacVicar
Just forgetfulness with PHP 5.2, I'll get it applied soon. Scott On 17 Mar 2009, at 20:15, Matt Wilmas wrote: Hi Scott, Didn't get to send a message before you corrected the decoding, but was going to suggest the method for long vs double checking that's used in the scanner, is_numeric_str

Re: [PHP-CVS] cvs: php-src /ext/json JSON_parser.c

2009-03-17 Thread Matt Wilmas
Hi Scott, Didn't get to send a message before you corrected the decoding, but was going to suggest the method for long vs double checking that's used in the scanner, is_numeric_string(), etc. (and I'm about to add a couple more). It saves from using both strto* functions. :-) See the attache

Re: [PHP-CVS] cvs: php-src /ext/json JSON_parser.c

2009-03-17 Thread Scott MacVicar
Nope, this is just for us when creating zvals. http://marc.info/?l=php-cvs&m=123086535705859&w=2 Needs to be merged though. Scott Rasmus Lerdorf wrote: > Does this need to go upstream to the json.org version? > > Scott MacVicar wrote: >> scottmac Tue Mar 17 14:56:49 2009 UTC >> >>

Re: [PHP-CVS] cvs: php-src /ext/json JSON_parser.c

2009-03-17 Thread Rasmus Lerdorf
Does this need to go upstream to the json.org version? Scott MacVicar wrote: > scottmac Tue Mar 17 14:56:49 2009 UTC > > Modified files: > /php-src/ext/json JSON_parser.c > Log: > Deal with overflow when decoding large numbers > > > > http://cvs.php.

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c

2009-03-17 Thread Scott MacVicar
scottmacTue Mar 17 14:56:49 2009 UTC Modified files: /php-src/ext/json JSON_parser.c Log: Deal with overflow when decoding large numbers http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.23&r2=1.24&diff_format=u Index: php-src/ext

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c /ext/json/tests bug47644.phpt

2009-03-16 Thread Scott MacVicar
scottmacTue Mar 17 02:00:08 2009 UTC Added files: /php-src/ext/json/tests bug47644.phpt Modified files: /php-src/ext/json JSON_parser.c Log: Fix bug #47644 - Valid integers are truncated with json_decode() http://cvs.

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c JSON_parser.h json.c php_json.h /ext/json/tests 007.phpt

2008-12-18 Thread Scott MacVicar
scottmacFri Dec 19 02:01:00 2008 UTC Modified files: /php-src/ext/json JSON_parser.c JSON_parser.h json.c php_json.h /php-src/ext/json/tests 007.phpt Log: Add json_last_error() for getting a bit of information about what failed during a decode,

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c

2008-12-17 Thread Scott MacVicar
scottmacWed Dec 17 15:46:00 2008 UTC Modified files: /php-src/ext/json JSON_parser.c Log: Fix Windows build http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.20&r2=1.21&diff_format=u Index: php-src/ext/json/JSON_parser.c diff -u p

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c JSON_parser.h json.c

2008-12-17 Thread Scott MacVicar
scottmacWed Dec 17 14:39:56 2008 UTC Modified files: /php-src/ext/json JSON_parser.c JSON_parser.h json.c Log: Update the JSON parser with that on json.org, biggest change here is code readability. Less magic numbers in the state table. Add missing ref

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c

2008-12-02 Thread Matt Wilmas
mattwil Tue Dec 2 14:50:01 2008 UTC Modified files: /php-src/ext/json JSON_parser.c Log: Changed logic for LONG_MIN http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.18&r2=1.19&diff_format=u Index: php-src/ext/json/JSON_parser.c diff -u php-sr

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c

2008-07-30 Thread Rasmus Lerdorf
rasmus Wed Jul 30 13:57:47 2008 UTC Modified files: /php-src/ext/json JSON_parser.c Log: We can afford a larger stack here and other json parsers out there go deeper than 128. http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.17&r2=1.18&d

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c utf8_decode.c utf8_to_utf16.c

2007-07-12 Thread Antony Dovgal
tony2001Thu Jul 12 09:55:41 2007 UTC Modified files: /php-src/ext/json JSON_parser.c utf8_decode.c utf8_to_utf16.c Log: fix WS, CS and other S http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.15&r2=1.16&diff_format=u Index: php-src/e

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c

2007-06-13 Thread Ilia Alshanetsky
iliaa Wed Jun 13 17:57:10 2007 UTC Modified files: /php-src/ext/json JSON_parser.c Log: MFB: Handle very small longs via double http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.14&r2=1.15&diff_format=u Index: php-src/ext/json/JSON_parser.

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c json.c

2007-06-13 Thread Ilia Alshanetsky
iliaa Wed Jun 13 17:10:06 2007 UTC Modified files: /php-src/ext/json json.c JSON_parser.c Log: MFB: Fixed bug #41673 (json_encode breaks large numbers in arrays). http://cvs.php.net/viewvc.cgi/php-src/ext/json/json.c?r1=1.26&r2=1.27&diff_format=u Index: php-

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c

2007-06-08 Thread Antony Dovgal
tony2001Fri Jun 8 08:57:21 2007 UTC Modified files: /php-src/ext/json JSON_parser.c Log: oops, empty properties are not allowed http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.12&r2=1.13&diff_format=u Index: php-src/ext/json/JSON_

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c

2007-06-08 Thread Antony Dovgal
tony2001Fri Jun 8 08:51:46 2007 UTC Modified files: /php-src/ext/json JSON_parser.c Log: MFB: fix #41504 (json_decode() incorrectly decodes JSON arrays with empty string keys). http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.11&r

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c

2007-05-24 Thread Rasmus Lerdorf
rasmus Thu May 24 22:39:06 2007 UTC Modified files: /php-src/ext/json JSON_parser.c Log: MFB 5_2 - increase json parser depth from 20 to 128 http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.10&r2=1.11&diff_format=u Index: php-src/ext/json/

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c /ext/json/tests bug41403.phpt

2007-05-16 Thread Antony Dovgal
tony2001Wed May 16 12:53:36 2007 UTC Added files: /php-src/ext/json/tests bug41403.phpt Modified files: /php-src/ext/json JSON_parser.c Log: fix #41403 (json_decode cannot decode floats if localeconv decimal_point is not '.')

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c

2007-04-19 Thread Ilia Alshanetsky
iliaa Thu Apr 19 22:49:12 2007 UTC Modified files: /php-src/ext/json JSON_parser.c Log: MFB: Fixed bug #41067 (json_encode() problem with UTF-16 input). http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.8&r2=1.9&diff_format=u Index: php-s

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c json.c

2007-04-16 Thread Andrei Zmievski
andrei Mon Apr 16 16:52:21 2007 UTC Modified files: /php-src/ext/json JSON_parser.c json.c Log: MFB (handling of control characters) http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.7&r2=1.8&diff_format=u Index: php-src/ext/json/JSON_parse

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c

2006-10-18 Thread Dmitry Stogov
dmitry Wed Oct 18 07:41:33 2006 UTC Modified files: /php-src/ext/json JSON_parser.c Log: ZTS fix http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.6&r2=1.7&diff_format=u Index: php-src/ext/json/JSON_parser.c diff -u php-src/ext/json/JSON_pa

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c json.c

2006-10-17 Thread Andrei Zmievski
andrei Tue Oct 17 17:56:54 2006 UTC Modified files: /php-src/ext/json JSON_parser.c json.c Log: Unicode support in JSON functions. http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.5&r2=1.6&diff_format=u Index: php-src/ext/json/JSON_parser.c

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c

2006-07-25 Thread Antony Dovgal
tony2001Tue Jul 25 09:06:47 2006 UTC Modified files: /php-src/ext/json JSON_parser.c Log: initialize variable http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.4&r2=1.5&diff_format=u Index: php-src/ext/json/JSON_parser.c diff -u php-

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c json.c

2006-07-22 Thread Nuno Lopes
nlopess Sat Jul 22 15:23:23 2006 UTC Modified files: /php-src/ext/json JSON_parser.c json.c Log: MFB http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.3&r2=1.4&diff_format=u Index: php-src/ext/json/JSON_parser.c diff -u php-src/ext/json/JSON_pa

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c

2006-07-20 Thread Antony Dovgal
tony2001Thu Jul 20 09:18:46 2006 UTC Modified files: /php-src/ext/json JSON_parser.c Log: ZTS fix http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.2&r2=1.3&diff_format=u Index: php-src/ext/json/JSON_parser.c diff -u php-src/ext/json

[PHP-CVS] cvs: php-src /ext/json JSON_parser.c /ext/json/tests 001.phpt

2006-07-20 Thread Antony Dovgal
tony2001Thu Jul 20 08:23:45 2006 UTC Added files: /php-src/ext/json/tests 001.phpt Modified files: /php-src/ext/json JSON_parser.c Log: fix segfault caused by empty keys is JSON data add test http://cvs.php.net/viewvc.