Skip to content

Commit

Permalink
Merge branch 'PHP-7.0' into PHP-7.1
Browse files Browse the repository at this point in the history
* PHP-7.0:
  Fixed bug #73172 parse error: Invalid numeric literal
  • Loading branch information
weltling committed Sep 26, 2016
2 parents 5e24fe9 + 39e5991 commit 4e37463
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Zend/zend_strtod_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ typedef unsigned long int uint32_t;
# endif
#endif

#ifdef HAVE_LOCALE_H
#define USE_LOCALE 1
#ifdef USE_LOCALE
#undef USE_LOCALE
#endif

#ifdef WORDS_BIGENDIAN
Expand Down
7 changes: 7 additions & 0 deletions tests/lang/bug73172.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

function test($a, $x, $y){
return;
}
test('test', 9223372036854775808, 'test');

13 changes: 13 additions & 0 deletions tests/lang/bug73172.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--TEST--
Bug #73172 parse error: Invalid numeric literal
--FILE--
<?php

setlocale(LC_ALL, 'fr_FR.utf8', 'fra');

include dirname(__FILE__) . DIRECTORY_SEPARATOR . "bug73172.inc";

?>
==DONE==
--EXPECTF--
==DONE==

0 comments on commit 4e37463

Please sign in to comment.