diff options
author | Aaron Piotrowski <aaron@trowski.com> | 2015-07-03 09:45:03 -0500 |
---|---|---|
committer | Aaron Piotrowski <aaron@trowski.com> | 2015-07-03 09:45:03 -0500 |
commit | ed1b64877d82af71bc64a48bf914046640e8a270 (patch) | |
tree | 914694f44a90a8a76656e76f3fe0c89fdbd25b89 /Zend/zend_language_scanner.l | |
parent | a812a74c2e60a0ba080057067a7634e4da3f2b9b (diff) | |
download | php-git-ed1b64877d82af71bc64a48bf914046640e8a270.tar.gz |
Switch position of ce in exception ce variable names
Diffstat (limited to 'Zend/zend_language_scanner.l')
-rw-r--r-- | Zend/zend_language_scanner.l | 10 |
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); } } |