mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
there is no %v in 5.2
This commit is contained in:
parent
749f4ac2ab
commit
80d7ac0e9e
2 changed files with 2 additions and 2 deletions
|
@ -686,7 +686,7 @@ ZEND_API void zend_exception_error(zval *exception TSRMLS_DC)
|
||||||
file = NULL;
|
file = NULL;
|
||||||
line = NULL;
|
line = NULL;
|
||||||
}
|
}
|
||||||
zend_error_va(E_WARNING, file ? Z_STRVAL_P(file) : NULL, line ? Z_LVAL_P(line) : 0, "Uncaught %v in exception handling during call to %v::__tostring()", Z_OBJCE_P(EG(exception))->name, ce_exception->name);
|
zend_error_va(E_WARNING, file ? Z_STRVAL_P(file) : NULL, line ? Z_LVAL_P(line) : 0, "Uncaught %s in exception handling during call to %s::__tostring()", Z_OBJCE_P(EG(exception))->name, ce_exception->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
str = zend_read_property(default_exception_ce, exception, "string", sizeof("string")-1, 1 TSRMLS_CC);
|
str = zend_read_property(default_exception_ce, exception, "string", sizeof("string")-1, 1 TSRMLS_CC);
|
||||||
|
|
|
@ -432,7 +432,7 @@ int zend_user_serialize(zval *object, unsigned char **buffer, zend_uint *buf_len
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result == FAILURE) {
|
if (result == FAILURE) {
|
||||||
zend_throw_exception_ex(NULL, 0 TSRMLS_CC, "%v::serialize() must return a string or NULL", ce->name);
|
zend_throw_exception_ex(NULL, 0 TSRMLS_CC, "%s::serialize() must return a string or NULL", ce->name);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue