php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #64695
Patch return_string_instead_of_warning revision 2013-04-23 06:27 UTC by keith at openx dot com
revision 2013-04-23 06:03 UTC by keith at openx dot com
Patch is_numeric_patch revision 2013-04-23 04:16 UTC by keith at openx dot com

Patch is_numeric_patch for JSON related Bug #64695

Patch version 2013-04-23 04:16 UTC

Return to Bug #64695 | Download this patch
This patch is obsolete

Obsoleted by patches:

Patch Revisions:

Developer: keith@openx.com

diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h
index 273347f..e34c87a 100644
--- a/Zend/zend_operators.h
+++ b/Zend/zend_operators.h
@@ -150,6 +150,9 @@ check_digits:
 
 					if (*e == '-' || *e == '+') {
 						ptr = e++;
+					} else {
+					    // e without a following +/- is not valid exponent notation
+					    return 0;
 					}
 					if (ZEND_IS_DIGIT(*e)) {
 						goto process_double;
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 00:01:41 2024 UTC