File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,8 @@ PHP_FUNCTION(appserver_redefine)
258
258
if ((defined -> module_number == PHP_USER_CONSTANT )) {
259
259
zend_constant container = * defined ;
260
260
261
- container .name = zend_strndup (container .name , container .name_len );
261
+ if (pzval )
262
+ container .name = zend_strndup (container .name , container .name_len );
262
263
263
264
if (zend_hash_del (EG (zend_constants ), name , name_len + 1 )== SUCCESS ) {
264
265
if (pzval ) {
@@ -267,9 +268,8 @@ PHP_FUNCTION(appserver_redefine)
267
268
zend_hash_next_index_insert (
268
269
& APPSERVER_GLOBALS (redefined ), & pzval , sizeof (zval * * ), NULL );
269
270
Z_ADDREF_P (pzval );
270
- zend_register_constant (
271
- & container TSRMLS_CC );
272
- }
271
+ zend_register_constant (& container TSRMLS_CC );
272
+ }
273
273
}
274
274
} else {
275
275
/* change internal constant */
You can’t perform that action at this time.
0 commit comments