Nikita Popov
e3e3547627
Merge branch 'PHP-7.0' into PHP-7.1
2017-03-23 22:49:51 +01:00
Nikita Popov
d719b46222
Fix sequencing UB
2017-03-23 22:48:45 +01:00
Nikita Popov
f5951cc81b
Fix lineno for AST_ZVAL nodes
2017-03-23 22:48:41 +01:00
Sara Golemon
7835e2ebc5
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix bug where `yield from` is captured too greedily
2017-03-23 13:38:58 -07:00
Sara Golemon
0fb640c717
Fix bug where yield from is captured too greedily
...
In the following piece of code:
```php
function from1234($x) {
return $x;
}
function foo($x) {
yield from1234($x);
}
```
The statement inside foo is taken as `yield from` `1234($x)`
which is neither the intent, nor even legal syntax for an fcall.
Do a lookahead for breaking non-label characters after the
`yield from` and only accept it if they occur.
2017-03-23 13:31:06 -07:00
Nikita Popov
f2c35fdda8
Merge branch 'PHP-7.0' into PHP-7.1
2017-03-17 20:20:43 +01:00
Nikita Popov
2e83082605
Fix bug #74265
2017-03-17 20:19:40 +01:00
Nikita Popov
893bf7ecdd
Merge branch 'PHP-7.0' into PHP-7.1
2017-03-17 13:35:50 +01:00
Nikita Popov
183cd048f1
Fix AST start lineno for list nodes
...
If the node is initialized with children, check if a child has a
lower start lineno, similar to what we do for fixed-sized nodes
as well.
2017-03-17 13:35:24 +01:00
Nikita Popov
2bba4a0d7f
Fix bug #69676
2017-03-15 19:49:02 +01:00
Nikita Popov
280e8dafe4
Merge branch 'PHP-7.0' into PHP-7.1
2017-03-10 18:20:58 +01:00
Nikita Popov
29ee3e3c49
Fixed bug #73960
2017-03-10 18:20:32 +01:00
Nikita Popov
305f3c2b76
Merge branch 'PHP-7.0' into PHP-7.1
2017-03-09 20:48:24 +01:00
Nikita Popov
177f87cf05
Fixed bug #73370
...
If len=0 malloc() is allowed to return NULL.
2017-03-09 20:47:06 +01:00
Joe Watkins
8599ce4f18
Fix bug #74149 static embed SAPI linkage error
2017-03-09 07:43:58 +00:00
Nikita Popov
8a6281455e
Merge branch 'PHP-7.0' into PHP-7.1
2017-03-07 13:17:33 +01:00
Nikita Popov
549a30d2cd
Fix out of bounds access in gc_find_additional_buffer()
2017-03-07 13:16:06 +01:00
Anatol Belski
1d4248af42
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
improve signal globals consistency check for TS
2017-03-02 20:34:48 +01:00
Anatol Belski
18f7e26257
improve signal globals consistency check for TS
...
Seems when we receive TERM, TLS is destroyed completely. In that case,
not only signal globals, but the entire globals array doesn't exist
anymore.
2017-03-02 20:27:27 +01:00
Anatol Belski
494fc16184
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
do not try to handle signals, when globals are inconsistent
2017-03-02 16:41:43 +01:00
Anatol Belski
c7b2c698d0
do not try to handle signals, when globals are inconsistent
2017-03-02 16:40:38 +01:00
Sara Golemon
c5727a30cf
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix potential crash when setting invalid declare value
2017-02-28 17:17:41 -08:00
Sara Golemon
868930e079
Fix potential crash when setting invalid declare value
...
Using a non-literal expression in a declare value can cause the
compiler to crash trying to turn that AST node into a usable zval.
There was an existing test for such values using 'encoding',
but that didn't crash because it's handled by the lexer
rather than being compiled.
Trying to use a non-literal with ticks reproduces the crash.
2017-02-28 17:08:23 -08:00
Remi Collet
3006d1de5b
make test slower again
2017-02-28 11:36:24 +01:00
Xinchen Hui
6a584cf318
Fixed bug #74157 (Segfault with nested generators)
2017-02-26 12:05:56 +08:00
Xinchen Hui
36fcc4cb5d
Fixed bug #74164 (PHP hangs when an invalid value is dynamically passed to typehinted by-ref arg)
2017-02-25 12:00:42 +08:00
Anatol Belski
ac64eea9e6
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
initialize valid_symbol_table, important for the main thread
2017-02-18 18:03:55 +01:00
Anatol Belski
1623ef10c9
initialize valid_symbol_table, important for the main thread
...
to prevent php_errormsg population on invalid symlol_table
2017-02-18 17:58:17 +01:00
Xinchen Hui
aa1d92e3e5
Unused var
2017-02-17 12:22:59 +08:00
Nikita Popov
9ca43b873a
Merge branch 'PHP-7.0' into PHP-7.1
2017-02-16 17:36:03 +01:00
Ondřej Surý
61e59db99d
Disable RTLD_DEEPBIND when compiling with AddressSanitizer (-fsanitize=address).
...
The AddressSanitizer doesn't support RTLD_DEEPBIND resulting in
erratic errors when deinitializing phar module and possibly others.
Clang use __has_feature() macro to indicate compilation with
AddressSanitizer while gcc uses __SANITIZE_ADDRESS__ define.
Fixes bug #73677 .
2017-02-16 17:35:29 +01:00
Anatol Belski
8ad75bec97
skip test
...
The code path not available on Windows.
2017-02-15 16:12:34 +01:00
Xinchen Hui
f53ea4cd60
Fixed test in travis
2017-02-15 17:31:27 +08:00
Xinchen Hui
8d94d5d942
Make it slower
2017-02-15 15:27:21 +08:00
Xinchen Hui
dad5281a89
Fixed test
2017-02-15 14:49:02 +08:00
Xinchen Hui
6767ef05a5
Add a test for hard_timeout(bug #74093 )
2017-02-15 13:51:45 +08:00
Xinchen Hui
1242f53ddb
Workaround to fix bug #74093 (Maximum execution time of n+2 seconds exceed not written in error_log)
...
Use a different exit code for hard_timeout, 124 is used by linux
timeout:http://man7.org/linux/man-pages/man1/timeout.1.html
"If the command times out, and --preserve-status is not set, then exit with status 124"
2017-02-15 12:27:56 +08:00
Xinchen Hui
9df7cc3e68
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #73989 (PHP 7.1 Segfaults within Symfony test suite)
2017-02-13 19:17:09 +08:00
Xinchen Hui
3917350531
Fixed bug #73989 (PHP 7.1 Segfaults within Symfony test suite)
2017-02-13 19:16:17 +08:00
Xinchen Hui
b56114e8fb
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #74084 (Out of bound read - zend_mm_alloc_small)
Conflicts:
Zend/zend_operators.c
2017-02-12 20:36:18 +08:00
Xinchen Hui
26fdebc63b
Fixed bug #74084 (Out of bound read - zend_mm_alloc_small)
2017-02-12 20:34:08 +08:00
Xinchen Hui
808a11041d
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed typo
2017-02-11 00:01:38 +08:00
Xinchen Hui
db7c0badd4
Fixed typo
2017-02-11 00:01:09 +08:00
Nikita Popov
8417a3be38
Merge branch 'PHP-7.0' into PHP-7.1
2017-02-08 01:00:46 +01:00
dreamsxin
7a0adb4cd2
Add #ifndef restrict
2017-02-08 01:00:35 +01:00
Nikita Popov
bb9adc4c52
Merge branch 'PHP-7.0' into PHP-7.1
2017-02-08 00:53:36 +01:00
Christian Schmidt
714d825b62
Fix detection of isnan and isinf
...
The isnan() and isinf() are C99 macros not functions.
Also fix is_infinite(-INF) in case isinf is not defined.
2017-02-08 00:53:18 +01:00
Anatol Belski
189ea77101
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
use some dynamically generated NAN as well
2017-02-07 13:18:38 +01:00
Anatol Belski
044dd30440
use some dynamically generated NAN as well
2017-02-07 13:16:30 +01:00
Anatol Belski
265c53dbbf
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
switch to smart str conversion routine to hide exact NAN type
2017-02-07 12:03:21 +01:00