Initial commit

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>
Registering the yajl parser resource

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>
Renamed parser destructor from 'php_yajl_parser_dtor' to 'yajl_parser_dtor' and added alloc functions

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>
Parser options are coded and compiled

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>
Parser creator coded and compiled

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>
Coded and compiled yajl_set_handler() and yajl_call_handler()

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>
Coded and compiled everything up to handling null's, but neither 'yajl_parse' nor 'yajl_complete_parse' yet

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>
null_handler works.

Still have to implement the rest of the handlers together with
the yajl_get_error(). May make is also call yajl_status_to_string()
for the error message's title perhaps.

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>
Error functions are working

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>
Got integer (long long) and double callbacks working.

Have to test how long long's work on 32 bit archs.

So I might implement yajl_bcmath_parser_create and have another
group of callbacks with yajl_integer = yajl_double = NULL and
yajl_number not = NULL. The value parameter in number_handler()
would be a string represention of an arbitrarely large number.

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>
Added an optional bool flag to yajl_parser_create()

resource yajl_parser_create([ bool $numbers_are_strings ])

Set this flag to true for architectures where sizeof(long)
is not equal to sizeof(long long) as use bcmath.

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>
All yajl parser functions' php bindings are coded and compiled:

yajl_parser_create
yajl_parser_set_option
yajl_parser_set_object
yajl_set_null_handler
yajl_set_number_handler
yajl_set_string_handler
yajl_set_start_map_handler
yajl_set_map_key_handler
yajl_set_end_map_handler
yajl_set_start_array_handler
yajl_set_end_array_handler
yajl_parse
yajl_parser_free
yajl_get_error
yajl_get_bytes_consumed

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>
Not counting on 'true' macro being defined anymore

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>
Handling integer conversion warnings in php for 32 bit architectures

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>
Needed a TSRMLS_FETCH() macro call in yajl_integer

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>
Moved the handling of an integer parse error before any memory allocations

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>
Added my name to the CREDITS file

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>
Added some missing internals to complete the parser's functionality

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>
Fixed comment for yajl_get_error

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>
Changed data_len from type 'size_t' to type 'int' in yajl_parse()

Signed-off-by: Nick Tolomiczenko <nick.tolomiczenko@gmail.com>