]> granicus.if.org Git - php/commit
Add STR_ALLOCA_* API, use in get_method and verify_arg
authorNikita Popov <nikic@php.net>
Fri, 2 May 2014 15:01:36 +0000 (17:01 +0200)
committerNikita Popov <nikic@php.net>
Sat, 3 May 2014 08:43:45 +0000 (10:43 +0200)
commit65f488ece3f946d53b12b8c265185a483b079dfb
tree47b91136e6f998a4c3f05b52376f89fde7f517b5
parentd8651fbe1c4caaaedc42cef1dee0dd3b3f1e447e
Add STR_ALLOCA_* API, use in get_method and verify_arg

This avoid unnecessary allocations when using dynamic method
dispatch and class typehints.

Probably there are other places where this should be done as well,
those just stood out for my usage.
Zend/zend_execute.c
Zend/zend_object_handlers.c
Zend/zend_string.h