[PHP] Pass ZTS context through to t_output_helper() so it works

with a ZTS-enabled build of PHP.  Reported by Pierre Labastie in
github PR#155.
This commit is contained in:
Olly Betts 2014-04-02 23:23:22 +13:00
commit 18c00e20bc
3 changed files with 13 additions and 8 deletions

View file

@ -91,7 +91,7 @@
%fragment("t_output_helper","header") %{
static void
t_output_helper( zval **target, zval *o) {
t_output_helper(zval **target, zval *o TSRMLS_DC) {
if ( (*target)->type == IS_ARRAY ) {
/* it's already an array, just append */
add_next_index_zval( *target, o );