Skip to content

Commit 8410c6d

Browse files
authored
Merge pull request #405 from dreamsxin/cookie
Fix method Phalcon\Di\Injectable::__debugInfo
2 parents 050b5b7 + 2987e22 commit 8410c6d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/di/injectable.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,12 +598,10 @@ PHP_METHOD(Phalcon_Di_Injectable, __sleep){
598598

599599
PHP_METHOD(Phalcon_Di_Injectable, __debugInfo){
600600

601-
phalcon_get_object_vars(return_value, getThis(), 0);
602-
Z_DELREF_P(return_value);
601+
phalcon_get_object_vars(return_value, getThis(), 1);
603602

604603
if (likely(!PHALCON_GLOBAL(debug).enable_debug)) {
605604
phalcon_array_unset_str(return_value, SL("_dependencyInjector"), 0);
606605
phalcon_array_unset_str(return_value, SL("_eventsManager"), 0);
607606
}
608-
Z_TRY_ADDREF_P(return_value);
609607
}

0 commit comments

Comments
 (0)