summaryrefslogtreecommitdiff
path: root/Zend/zend_language_scanner.c
diff options
context:
space:
mode:
authorAaron Piotrowski <aaron@trowski.com>2015-07-03 09:45:03 -0500
committerAaron Piotrowski <aaron@trowski.com>2015-07-03 09:45:03 -0500
commited1b64877d82af71bc64a48bf914046640e8a270 (patch)
tree914694f44a90a8a76656e76f3fe0c89fdbd25b89 /Zend/zend_language_scanner.c
parenta812a74c2e60a0ba080057067a7634e4da3f2b9b (diff)
downloadphp-git-ed1b64877d82af71bc64a48bf914046640e8a270.tar.gz
Switch position of ce in exception ce variable names
Diffstat (limited to 'Zend/zend_language_scanner.c')
-rw-r--r--Zend/zend_language_scanner.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Zend/zend_language_scanner.c b/Zend/zend_language_scanner.c
index 63cab792b3..9e2250b926 100644
--- a/Zend/zend_language_scanner.c
+++ b/Zend/zend_language_scanner.c
@@ -1010,7 +1010,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;
@@ -1021,7 +1021,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;
@@ -2743,7 +2743,7 @@ yy136:
* 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 {
@@ -2759,7 +2759,7 @@ yy136:
}
/* 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);
}
@@ -2768,7 +2768,7 @@ yy136:
}
/* 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);
}
}