summaryrefslogtreecommitdiff
path: root/Zend/zend_language_scanner.l
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_language_scanner.l')
-rw-r--r--Zend/zend_language_scanner.l10
1 files changed, 5 insertions, 5 deletions
diff --git a/Zend/zend_language_scanner.l b/Zend/zend_language_scanner.l
index ca2b202dd7..4498edae5c 100644
--- a/Zend/zend_language_scanner.l
+++ b/Zend/zend_language_scanner.l
@@ -1008,7 +1008,7 @@ static int zend_scan_escape_string(zval *zendlval, char *str, int len, char quot
}
if (!valid) {
- zend_throw_exception(zend_parse_error_ce,
+ zend_throw_exception(zend_ce_parse_error,
"Invalid UTF-8 codepoint escape sequence", E_PARSE);
zval_ptr_dtor(zendlval);
return FAILURE;
@@ -1019,7 +1019,7 @@ static int zend_scan_escape_string(zval *zendlval, char *str, int len, char quot
/* per RFC 3629, UTF-8 can only represent 21 bits */
if (codepoint > 0x10FFFF || errno) {
- zend_throw_exception(zend_parse_error_ce,
+ zend_throw_exception(zend_ce_parse_error,
"Invalid UTF-8 codepoint escape sequence: Codepoint too large", E_PARSE);
zval_ptr_dtor(zendlval);
return FAILURE;
@@ -1658,7 +1658,7 @@ NEWLINE ("\r"|"\n"|"\r\n")
* Because the lexing itself doesn't do that for us
*/
if (end != yytext + yyleng) {
- zend_throw_exception(zend_parse_error_ce, "Invalid numeric literal", E_PARSE);
+ zend_throw_exception(zend_ce_parse_error, "Invalid numeric literal", E_PARSE);
RETURN_TOKEN(T_ERROR);
}
} else {
@@ -1674,7 +1674,7 @@ NEWLINE ("\r"|"\n"|"\r\n")
}
/* Also not an assert for the same reason */
if (end != yytext + yyleng) {
- zend_throw_exception(zend_parse_error_ce,
+ zend_throw_exception(zend_ce_parse_error,
"Invalid numeric literal", E_PARSE);
RETURN_TOKEN(T_ERROR);
}
@@ -1683,7 +1683,7 @@ NEWLINE ("\r"|"\n"|"\r\n")
}
/* Also not an assert for the same reason */
if (end != yytext + yyleng) {
- zend_throw_exception(zend_parse_error_ce, "Invalid numeric literal", E_PARSE);
+ zend_throw_exception(zend_ce_parse_error, "Invalid numeric literal", E_PARSE);
RETURN_TOKEN(T_ERROR);
}
}