Commit Graph

3944 Commits

Author SHA1 Message Date
Hannes Magnusson
615ce0c87d PHPC-390: php.ini updates 2015-12-16 10:21:33 +00:00
Hannes Magnusson
03ebdc6463 littlebit to eager on the zend_string, this is PHP5 2015-12-16 10:21:33 +00:00
Hannes Magnusson
f9170fc2ce Get the zend_string value 2015-12-16 10:21:33 +00:00
Hannes Magnusson
e8ba12bd2b hash API changes, off-by-ones 2015-12-16 10:21:33 +00:00
Hannes Magnusson
2261c87b5b PHPC-380: Use the compatability macros to get the object 2015-12-16 10:21:33 +00:00
Hannes Magnusson
3c024a9bde Properly initialize the zval* we are working with 2015-12-16 10:21:33 +00:00
Hannes Magnusson
6a3c2d6925 +1 in PHP5, not PHP7 2015-12-16 10:21:33 +00:00
Hannes Magnusson
e27a4db787 Include numeric keys as well 2015-12-16 10:21:33 +00:00
Patrick Boyd
f531d4aa8f Object property names missing due to lack of key length 2015-12-16 10:21:33 +00:00
Hannes Magnusson
295940f46d Should all compile now! 2015-12-16 10:21:33 +00:00
Hannes Magnusson
f267ede46e Simpilfy iterating over a zval 2015-12-16 10:21:33 +00:00
Hannes Magnusson
f26b44f14c Use Z_ISUNDEF() to check the zval 2015-12-16 10:21:33 +00:00
Hannes Magnusson
c6a871a44e WS 2015-12-16 10:21:33 +00:00
Patrick Boyd
eab54fe667 PHPC-400: Handle IS_TRUE and IS_FALSE 2015-12-16 10:21:33 +00:00
Hannes Magnusson
00a3e01207 Simplify IS_ARRAY/IS_OBJECT discovery for PHP7 2015-12-16 10:21:33 +00:00
Hannes Magnusson
d18eb0ed7c PHPC-373: MAKE_STD_ZVAL() and zval* -> zval upgrades 2015-12-16 10:21:33 +00:00
Hannes Magnusson
34b6ffd939 We already know the length 2015-12-16 10:21:33 +00:00
Patrick Boyd
f664c1b104 str_efree() not defined in PHP7 2015-12-16 10:21:33 +00:00
Hannes Magnusson
bd153950f1 PHPC-397: RETURN_*() should RETURN ! :) 2015-12-16 10:21:33 +00:00
Hannes Magnusson
e5a42179b0 PHPC-399: zval_used_for_init is no longer needed (or defined) 2015-12-16 10:21:33 +00:00
Hannes Magnusson
48f04696d6 PHPC-398: zend_parse_parameter 's' expects a char* and size_t now 2015-12-16 10:21:33 +00:00
Patrick Boyd
7c99f91d19 PHP7 upgrades 2015-12-16 10:20:32 +00:00
Hannes Magnusson
78eecb4297 PHPC-373: MAKE_STD_ZVAL() is gone
And in most cases, zval* should be zval
2015-12-16 10:20:32 +00:00
Hannes Magnusson
36ce2d7ecd PHPC-397: RETURN_STRING() duplicate argument removed 2015-12-16 10:20:32 +00:00
Hannes Magnusson
bf00161ef3 PHPC-387: get_current_data() API changes 2015-12-16 10:20:04 +00:00
Hannes Magnusson
a704e46aa5 PHPC-397: dup argument in most string macros removed 2015-12-16 10:20:04 +00:00
Patrick Boyd
5a3ae566d9 PHPC-380: Use our bc type for free_object argument 2015-12-16 10:20:04 +00:00
Hannes Magnusson
5a0ba1f4ea PHPC-397: dup argument in most string macros removed 2015-12-16 10:20:04 +00:00
Patrick Boyd
f9305885a5 PHPC-396: HashTable no longer contains nApplyCount 2015-12-16 10:20:04 +00:00
Patrick Boyd
5846cd72fd PHPC-394: Fix issue with WriteException and zend_read_property 2015-12-16 10:20:04 +00:00
Hannes Magnusson
00c66b9670 PHPC-380: PHP7 create/free object changes 2015-12-16 10:20:04 +00:00
Patrick Boyd
9135dbf723 PHPC-380: create/free object handlers for PHP7 2015-12-16 10:19:30 +00:00
Hannes Magnusson
7f564b421e Define the TODOs for PHP5, these are PHP7 TODOs 2015-12-16 10:19:30 +00:00
Hannes Magnusson
3c19775997 PHPC-385: Remove leftover braces 2015-12-16 10:19:30 +00:00
Hannes Magnusson
41ede51ea1 Sprinkle TODOs -- it compiles now! 2015-12-16 10:19:30 +00:00
Hannes Magnusson
07b81a68ed PHPC-374: php_stream_xport_create() now wants zend_string 2015-12-16 10:19:30 +00:00
Hannes Magnusson
4920cd7cfd PHPC-388 - dtor on bson_to_zval() failure 2015-12-16 10:19:30 +00:00
Hannes Magnusson
720cc357b1 PHPC-387: Iterator API changes 2015-12-16 10:19:30 +00:00
Hannes Magnusson
d1ad604c11 PHPC-386: Forward port Z_PHPDATE_P() to get php_date_obj 2015-12-16 10:19:30 +00:00
Hannes Magnusson
4cdad82540 PHPC-385: add_assoc_string_ex() doesn't have a duplicate param in PHP7 2015-12-16 10:19:30 +00:00
Hannes Magnusson
5d6d0d1a2c PHPC-384: php_stream's no longer have resource ids 2015-12-16 10:19:30 +00:00
Hannes Magnusson
4c0f908c40 PHPC-383: Simplify getting the current exception zval* 2015-12-16 10:19:30 +00:00
Hannes Magnusson
8ee01788d1 PHPC-376: Cursor var_dump() is weird
Refactor so it mimicks all the other <type>_to_zval()
Also gets rid of MAKE_STD_ZVAL() for PHPC-373
2015-12-16 10:19:30 +00:00
Hannes Magnusson
342c62747c PHPC-373: Remove MAKE_STD_ZVAL() usage
This simplifies calling bson_to_zval() quite a bit.

bson_to_zval() now takes empty zval*
bson_to_zval_ex() now takes php_phongo_bson_state (with empty zval*)

bson_to_zval() will always alloc and init state.zchild
2015-12-16 10:15:28 +00:00
Hannes Magnusson
8d97a3a4eb PHPC-374: zend_string* vs char* PHP API changes (1/many) 2015-12-16 10:15:28 +00:00
Hannes Magnusson
846a92f46d PHPC-375: TSRMLS_FETCH_FROM_CTX() not applicable in PHP7
TSRMLS_FETCH_FROM_CTX() still dose the assignment in PHP7, which leads
to compiler warning since we don't actually use it
2015-12-16 10:15:28 +00:00
Hannes Magnusson
61e43e3b87 PHPC-372: zend_throw_exception() return value changes 2015-12-16 10:15:28 +00:00
Hannes Magnusson
55ce53038a PHP7: Start a phongo_compat.c with things that shouldn't be done in headers 2015-12-16 10:15:28 +00:00
Hannes Magnusson
09541b0059 PHP7: Lets start with just php_phongo.c for now 2015-12-16 10:15:28 +00:00
Hannes Magnusson
7f9343a877 PHPC-371: Prep for PHP7 resource changes 2015-12-16 10:15:28 +00:00