mirror of
https://github.com/php/php-src.git
synced 2026-04-02 05:32:28 +02:00
- Refix the fix
# This somehow got lost and was then readded by Andi in 1.258 at the wrong # position. Obviously we need to separate the argument first and convert it # afterwards as done in 5.0.*.
This commit is contained in:
@@ -338,9 +338,9 @@ static char *zend_parse_arg_impl(zval **arg, va_list *va, char **spec TSRMLS_DC)
|
||||
*pl = Z_STRLEN_PP(arg);
|
||||
break;
|
||||
case IS_OBJECT: {
|
||||
SEPARATE_ZVAL_IF_NOT_REF(arg);
|
||||
if (Z_OBJ_HANDLER_PP(arg, cast_object)
|
||||
&& Z_OBJ_HANDLER_PP(arg, cast_object)(*arg, *arg, IS_STRING, 0 TSRMLS_CC) == SUCCESS) {
|
||||
SEPARATE_ZVAL_IF_NOT_REF(arg);
|
||||
*pl = Z_STRLEN_PP(arg);
|
||||
*p = Z_STRVAL_PP(arg);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user