]> granicus.if.org Git - php/commit
Add dst parameter to convert_object_to_type macro
authorNikita Popov <nikic@php.net>
Fri, 25 Apr 2014 14:36:29 +0000 (16:36 +0200)
committerNikita Popov <nikic@php.net>
Fri, 25 Apr 2014 21:21:05 +0000 (23:21 +0200)
commit5db9312ec8653b2d26f60094ee994b6586e89d54
treeb83c04ef7ca432990893bc1f0490a051b47fca68
parent778946b3b6ecb917e528096b7d963ec7eb634f65
Add dst parameter to convert_object_to_type macro

Avoids a ZVAL_DUP in the zval_get_* functions.

Also improve object-to-array cast a bit by initializing the array
with correct number of elements and not doing a alloc-init-free
cycle when convert_object_to_type succeeds.
Zend/zend_operators.c