mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- Fixed bug #46067 (Collator methods - Segfault)
This commit is contained in:
parent
eb4f3f97bb
commit
c14338f5a9
1 changed files with 4 additions and 0 deletions
|
@ -180,10 +180,14 @@ PHP_FUNCTION(collator_create)
|
|||
int collator_name_len;
|
||||
zval *object;
|
||||
UCollator *ucoll;
|
||||
zend_error_handling error_handling;
|
||||
|
||||
zend_replace_error_handling(EH_THROW, NULL, &error_handling TSRMLS_CC);
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &collator_name, &collator_name_len) == FAILURE) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
zend_restore_error_handling(&error_handling TSRMLS_CC);
|
||||
|
||||
if ((object = getThis()) == NULL) {
|
||||
object = return_value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue