mirror of
https://github.com/php/php-src.git
synced 2026-04-23 16:08:35 +02:00
duplicate string when needed
This commit is contained in:
@@ -588,7 +588,7 @@ ZEND_FUNCTION(get_class)
|
||||
|
||||
dup = zend_get_object_classname(*arg, &name, &name_len TSRMLS_CC);
|
||||
|
||||
RETURN_TEXTL(name, name_len, 0);
|
||||
RETURN_TEXTL(name, name_len, dup);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user