mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Fix logic
This commit is contained in:
parent
ed32007f58
commit
35529e1964
2 changed files with 4 additions and 4 deletions
|
@ -1752,11 +1752,11 @@ void reflection_class_object_ctor(INTERNAL_FUNCTION_PARAMETERS, int is_object)
|
|||
zend_class_entry **ce;
|
||||
|
||||
if (is_object) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &argument) == FAILURE) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "o", &argument) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "o", &argument) == FAILURE) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &argument) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1752,11 +1752,11 @@ void reflection_class_object_ctor(INTERNAL_FUNCTION_PARAMETERS, int is_object)
|
|||
zend_class_entry **ce;
|
||||
|
||||
if (is_object) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &argument) == FAILURE) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "o", &argument) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "o", &argument) == FAILURE) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &argument) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue