Dmitry Stogov
709e4e4f17
Fixed incorrect ZEND_ACC_ARENA_ALLOCATED usage (it must be used only for internal functions).
2018-08-29 23:40:17 +03:00
Xinchen Hui
04c4854fdf
Fixed bug #76754 (parent private constant in extends class memory leak)
2018-08-17 13:35:15 +08:00
Xinchen Hui
2139c2c2de
Fixed pefree_size (efree_size will be expaned to do {} while () form)
2018-07-23 15:48:14 +08:00
Anatol Belski
ad790bea2e
Fix C++11 and up compatibility for zend_finite and more
...
C++11 puts isfinite, isinf, isnan and a lot of other stuff into the
std namespace. Thus, if a C++11 or newer source is compiled, these
symbols won't be available. A good solution would be to include cmath,
but depending on a particular compiler that might remove even more
stuff from the global namespace, so such a fix should only target master.
For now, just keep these defines same for C++11 and upper, as the actual
C++ code should use symbols from the std namespace anyway. This
especially concerns older GCC versions like at least 4 and 5, which are
used by default in the LTS Linux distros.
2018-07-08 20:20:08 +02:00
Nikita Popov
9b0df97a42
Fix handling of void return type on internal functions
2018-06-30 20:10:57 +02:00
Nikita Popov
962706d16c
Fix nullable type pretty-printing
2018-06-29 23:22:41 +02:00
Xinchen Hui
d1b1866a3a
Fixed bug #76534 (PHP hangs on 'illegal string offset on string references with an error handler)
2018-06-27 13:05:11 +08:00
Nikita Popov
701460ba84
Fixed bug #76502
2018-06-24 22:26:45 +02:00
Bob Weinand
97a8483143
Fixed bug #76383 (array_map on $GLOBALS returns IS_INDIRECT)
2018-05-28 00:48:35 +02:00
shiguangqi2008@gmail.com
98ef183ed0
Fix memory leak in zend_disable_class()
2018-04-26 16:16:37 +02:00
Anatol Belski
8417a23973
Fixed bug #76068 parse_ini_string fails to parse "[foo]\nbar=1|>baz" with segfault
2018-03-10 11:18:21 +01:00
Dmitry Stogov
b711a96acb
Don't keep HashTable.pDestructor in SHM and always set it into ZVAL_PTR_DTOR in zval_array_dup().
...
Keeping pointer to a function in SHM is not safe because of ASLR.
2018-03-06 00:56:16 +03:00
Xinchen Hui
d5c171311d
Fixed bug #76025 (Segfault while throwing exception in error_handler).
2018-02-28 18:06:37 +08:00
Sara Golemon
e954bafc28
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Use Z_EXPECTED_LONG to initialize FAST_ZPP parsing loop
2018-01-23 09:24:40 -05:00
Sara Golemon
e88e83d3e5
Use Z_EXPECTED_LONG to initialize FAST_ZPP parsing loop
2018-01-23 09:24:10 -05:00
Nikita Popov
2023346973
Fixed bug #75079
2018-01-15 12:15:40 +01:00
Nikita Popov
8c07170ddb
Fix generator GC if yield from parent chain does not reach root
...
Parents may be unlinked while another generator sharing part of the
chain is running. As such, we cannot assume that the parent chain
goes all the way to the root. Instead walk backwards from root to
leaf, like we also do during destruction.
2018-01-13 11:04:26 +01:00
Nikita Popov
cab0a814bd
Try to fix yield from GC issues
...
Make sure we always update root and parent references before
releasing the old root object.
This fixes some crashes under aggressive cycle collection, so
hopefully this will also fix bug #75351 .
2018-01-12 22:51:03 +01:00
Nikita Popov
420d11e8ca
Fixed bug #75396
...
Do not run finally blocks in generators on unclean shutdown (e.g.
caused by exit). This is consistent with how finally blocks outside
of generators behave.
2018-01-12 21:27:23 +01:00
Gabriel Caruso
a843a86e6f
Fixed bug #75799 (arg of get_defined_functions is optional)
2018-01-11 13:10:47 +01:00
Nikita Popov
fd30c59e04
Fixed bug #75786
...
SEND_UNPACK on iterators was duplicating references in-place,
which effectively leaks the original value and causes an off-by-one
refcount on the duplicated value.
Replace this with a deref, as an actual duplication is not even
needed in this case.
2018-01-09 20:20:31 +01:00
Lior Kaplan
fbfdd1e1c4
Happy new year (Update copyright to 2018)
2018-01-02 23:42:29 +02:00
Xinchen Hui
ccd4716ec7
year++
2018-01-02 12:53:31 +08:00
Levi Morrison
580bae4a2c
Fix copy-and-paste bugs
2017-12-13 21:25:00 +01:00
Anatol Belski
0eb262eacb
Use dtor unconditionally in error case
2017-12-04 14:15:42 +01:00
Xinchen Hui
d4dee4a614
Fixed bug #75573 (Segmentation fault in 7.1.12 and 7.0.26)
...
(cherry picked from commit 3b9ba7b6bd
)
2017-12-04 11:50:44 +01:00
Nikita Popov
cbe60003f1
Merge branch 'PHP-7.0' into PHP-7.1
2017-12-02 18:11:03 +01:00
Andy Postnikov
d6d4f2a9b3
Fix ZEND_SIGNED_MULTIPLY_LONG for AArch64
...
Register operands are required in this context.
This is a backport of 8c8679207a
to PHP 7.0+. The current code caused incorrect behavior on AArch64
when compiling with clang.
2017-12-02 18:10:17 +01:00
Dmitry Stogov
b73151845f
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Set trailing zero
2017-12-01 17:00:42 +03:00
Dmitry Stogov
24d5adbd5a
Set trailing zero
2017-12-01 17:00:11 +03:00
Xinchen Hui
3b9ba7b6bd
Fixed bug #75573 (Segmentation fault in 7.1.12 and 7.0.26)
2017-11-29 14:46:21 +08:00
DanielCiochiu
dba5a798a2
Fixed #74862 : Unable to clone instance when private __clone defined
...
Even though __clone was implemented as private and called only from
parent class, child extending class instance could not be cloned.
2017-11-15 23:00:26 +01:00
Anatol Belski
d36e793c93
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed #75384 PHP seems incompatible with OneDrive files on demand
Fixed ext/date tests due to changes in Olson database
2017-11-08 11:54:18 +01:00
Anatol Belski
c6720e2f45
Fixed #75384 PHP seems incompatible with OneDrive files on demand
2017-11-08 11:52:42 +01:00
Dmitry Stogov
503df277ab
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed indirect modification of magic ArrayAccess method arguments
2017-10-26 16:04:20 +03:00
Dmitry Stogov
98eee90734
Fixed indirect modification of magic ArrayAccess method arguments
2017-10-26 16:03:42 +03:00
Dmitry Stogov
d3146889ab
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Backport tests
2017-10-26 14:12:33 +03:00
Dmitry Stogov
502cfddf28
Backport tests
2017-10-26 14:12:08 +03:00
Dmitry Stogov
177cdcf313
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed indirect modification of magic method arguments.
2017-10-26 13:11:59 +03:00
Dmitry Stogov
bc59289b7a
Fixed indirect modification of magic method arguments.
2017-10-26 13:05:23 +03:00
Xinchen Hui
6b637ac589
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed test
2017-10-26 10:23:52 +08:00
Xinchen Hui
eaeccc1d99
Fixed test
2017-10-26 10:23:43 +08:00
Xinchen Hui
3c4c9a23bc
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #75420 (Crash when modifing property name in __isset for BP_VAR_IS)
Conflicts:
Zend/zend_object_handlers.c
2017-10-26 10:08:39 +08:00
Xinchen Hui
d2047503cb
Fixed bug #75420 (Crash when modifing property name in __isset for BP_VAR_IS)
2017-10-26 10:07:08 +08:00
Dmitry Stogov
bf1c1d07db
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #75368 (mmap/munmap trashing on unlucky allocations)
2017-10-13 13:56:23 +03:00
Dmitry Stogov
397f5cb687
Fixed bug #75368 (mmap/munmap trashing on unlucky allocations)
2017-10-13 13:56:06 +03:00
Andrea Faulds
4372293192
Merge branch 'PHP-7.0' into PHP-7.1
2017-09-29 21:38:30 +01:00
Andrea Faulds
abefb6dfe7
Fix bug #75290
2017-09-29 21:38:08 +01:00
Sara Golemon
b5bc88c64e
Fix word alignment on ILP64.
2017-09-28 10:45:51 -04:00
Joe Watkins
2dd77456fe
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed #75220 - Segfault when calling is_callable on parent
2017-09-27 06:08:01 +01:00