-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP7 Support #48
Closed
Closed
PHP7 Support #48
Changes from 72 commits
Commits
Show all changes
75 commits
Select commit
Hold shift + click to select a range
d3c7ca6
Mass replace smart_str -> smart_string
Sean-Der bb36411
Update PS_SERIALIZER_ENCODE_FUNC returns a zend_string instead of pas…
Sean-Der 39a9afd
Update PS_SERIALIZER_DECODE_FUNC to use the new hash iteration API, p…
Sean-Der 2a472e7
Update msgpack_var_add to use new hash API
Sean-Der 805e4a2
zend_uint -> uint32_t
Sean-Der 6f31cba
Update msgpack_serialize_zval. PHP_SET_CLASS_ATTRIBUTES now returns a…
Sean-Der e75fe8a
Update msgpack_serialize_object for new hashmap and zend_string API
Sean-Der 83f6ec0
Rough version of msgpack_serialize_array, use new hash iteration API
Sean-Der 8793909
Refactor msgpack_serialize_class to use new hash API and one level le…
Sean-Der fbc4e8e
Refactor msgpack_unserialize_class to drop one level of zval deferenc…
Sean-Der 4f1e6e7
Remove unused macros from msgpack_unpack.c, update msgpack_var_push a…
Sean-Der 8814fdd
Update msgpack_unserialize_map_item to handle zend_string inputs and …
Sean-Der 41800b5
Replace MSGPACK_UNPACKER_OBJECT and MSGPACK_BASE_OBJECT macros with m…
Sean-Der 51f7642
Update php_msgpack_base_t and php_msgpack_unpacker_t to use the new c…
Sean-Der 01d6519
Cleanup last zval deref changes in msgpack_class.c
Sean-Der 8e8e23c
Update msgpack_convert_long_to_properties to new hash table iteration…
Sean-Der 67deff3
Update msgpack_convert_string_to_properties to use new zend_string API
Sean-Der e5ec207
Port msgpack_convert_array to the new hash iteration API
Sean-Der 272eebd
Update ZEND_FUNCTION declaration of msgpack_unserialize to use new ze…
Sean-Der c52e1a7
Make sure to free returned smart_string in exposed ZEND_FUNCTION msgp…
Sean-Der ff23828
Update msgpack_check_ht_is_map to properly call zend_hash_add
Sean-Der 3137c5b
Cleanup indentation, remove redundant casting
Sean-Der 19e32ed
Port msgpack_convert_array to the new hash iteration API
Sean-Der a765bd8
Off by one when serializing a string during array serialization
Sean-Der f1388a6
msgpack_unserialize_map_item was incorrectly ported, MSGPACK_WARNING …
Sean-Der 9d6d636
Add Z_TYPE_REF_AWARE_P macro since when packing we can are possibly p…
Sean-Der aaeee58
Z_LVAL_P -> zval_get_long in case where we could have refs
Sean-Der d9b6553
When packing make everything ref aware, before TYPE/VAL would fail
Sean-Der b37104b
FIXME update msgpack_serialize_zval to call Z_INDIRECT_P if the type …
Sean-Der f5b47f8
Cleanup msgpack_unserialize_class, fixing 012 test segment fault
Sean-Der 774659c
FIXME add temporary version of ALLOC_INIT_ZVAL to msgpack_unpack, unt…
Sean-Der 487f76d
msgpack_serialize_class expects a list of keys, not a map. Update msg…
Sean-Der 85f58f4
Properly call __wakeup during unpacking
Sean-Der ea2d5be
Update var_push/stack_push to use a var_entries where data is a zval[…
Sean-Der 76d5a8a
FIXME: Comment out the call_user_function_ex calls implemented via op…
Sean-Der c4baa8e
Add commented out loop over var_hash for freeing after serialization
Sean-Der 4e19afa
Update msgpack_unserialize_class to use call_user_function_ex correctly
Sean-Der 51960ae
Update ZEND_METHOD(msgpack_unpacker, feed) to use a zend_string for z…
Sean-Der 3e67e92
When updating a class in msgpack_unserialize_map_item call zend_updat…
Sean-Der 591b3b3
Update msgpack_unserialize_map_item to properly handle adding element…
Sean-Der 0cd9aed
Update msgpack_var_add to return to the index of an already serialize…
Sean-Der 12c8a02
Update msgpack_unserialize_map_item to unmangle the property key set …
Sean-Der 70557c8
Update msgpack_var_access to use a zval** instead of a zval*** when f…
Sean-Der 5306649
Start fixing the compile time errors in msgpack_convert.c
Sean-Der 414f72b
Accidently disabled branch used to update classes in msgpack_unserial…
Sean-Der 94d6f04
MSGPACK_UNPACK_CONTINUE returned from template_execute means we shoul…
Sean-Der 60a3044
Bring back serializable interface support, was behind IFDEFs
Sean-Der 308e918
msgpack_serialize_object is now ref aware
Sean-Der b265cd9
Bring back seperate stacks for dtor variables, still emalloc leaks
Sean-Der a40f0e7
Fix memory leak, don't make pointless dupe of zval string when updati…
Sean-Der 1185dba
Fix memory leaks for non-dtor allocations
Sean-Der 93ec0c7
Fix pack/unpack memory leaks for classes
Sean-Der 351c29c
Fix zend_string memory leak in msgpack_serialize_class
Sean-Der 2247ba1
Fix memory leak in msgpack_unserialize_map_item when executing __wakeup
Sean-Der 210da3d
In msgpack_serialize_object allocate strings later, to make error han…
Sean-Der 45d832a
Memory leaks in msgpack_unserialize_class
Sean-Der f1b108a
PS_SERIALIZER_ENCODE_FUNC would pass an null zval * as return_value t…
Sean-Der caa80cb
Use Z_OBJCE_P instead of Z_OBJ_P()->ce
Sean-Der 3a75af1
Cleaner ref handling when unpacking a map item
Sean-Der 676e6bd
Update msgpack_unserialize_map_item to remove accidently added Z_ISREF_P
Sean-Der 6fbc26a
msgpack_unserialize_class now properly handles references, before it …
Sean-Der 88217d0
msgpack_serialize_array was incorrectly ported to handle when php_onl…
Sean-Der f53f484
Remove MSGPACK_METHOD1 macro which created the necessary opcodes to c…
Sean-Der b1a2abc
Update MessagePackUnpacker to use new object API, fixing unpacker tests
Sean-Der 3fb45c3
Z_LVAL_P on a boolean is no longer valid, msgpack->setOption incorrec…
Sean-Der 3572938
Began converting msgpack_convert.c from using symtable_update to upda…
Sean-Der db405c4
Fix memory leak when serializing a class with a unserialize entry
Sean-Der 3866934
Update msgpack_convert_long_to_properties to properly detect keys
Sean-Der fd19e23
Finish converting msgpack_convert_array
Sean-Der edcaeda
ZEND_HASH_FOREACH_KEY_VAL -> ZEND_HASH_FOREACH_STR_KEY_VAL ulong key …
Sean-Der c51a499
Fix unpacking code, we can't just reuse the stack anymore since the z…
Sean-Der 0ecf768
Finish 'unpack of template convertor' test fails, memory leaks unfixed
Sean-Der 138072b
Fixes from review by @zxcvdavid
Sean-Der 94ad5fd
Update msgpack_convert_template tests to assert we can create create …
Sean-Der 7bdfe4b
Cleaning up memory leaks in msgpack_convert.c
Sean-Der File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe msgpack_serialize_zval should use zend_str directly? then we can save a string duplication here