mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Remove get() object handler
Now that set() is gone, there is little point in keeping get(), as it is essentially just a different way of writing cast_object() now. Closes GH-4202.
This commit is contained in:
parent
693955c5c5
commit
45a0656e95
14 changed files with 22 additions and 190 deletions
|
@ -438,22 +438,6 @@ ZEND_API int ZEND_FASTCALL zend_parse_arg_str_weak(zval *arg, zend_string **dest
|
|||
*dest = Z_STR_P(arg);
|
||||
return 1;
|
||||
}
|
||||
} else if (zobj->handlers->get) {
|
||||
zval rv;
|
||||
zval *z = zobj->handlers->get(zobj, &rv);
|
||||
|
||||
if (Z_TYPE_P(z) != IS_OBJECT) {
|
||||
OBJ_RELEASE(zobj);
|
||||
if (Z_TYPE_P(z) == IS_STRING) {
|
||||
ZVAL_COPY_VALUE(arg, z);
|
||||
} else {
|
||||
ZVAL_STR(arg, zval_get_string_func(z));
|
||||
zval_ptr_dtor(z);
|
||||
}
|
||||
*dest = Z_STR_P(arg);
|
||||
return 1;
|
||||
}
|
||||
zval_ptr_dtor(z);
|
||||
}
|
||||
return 0;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue