Nikita Popov
f3dc67b255
Merge branch 'PHP-7.1' into PHP-7.2
2018-07-05 19:11:25 +02:00
Nikita Popov
0c4ab798de
Merge branch 'PHP-7.2'
2018-07-05 19:10:24 +02:00
Nikita Popov
0504594a28
Merge branch 'PHP-7.1' into PHP-7.2
2018-07-05 19:09:40 +02:00
Nikita Popov
791f07e4f0
Fix string.strip_tags filter
...
Was segfaulting if no allowed tags are specified and performing an
out of bounds read if they were.
2018-07-05 19:08:00 +02:00
Anatol Belski
0630e3bc03
Reduce error buffer size
...
120 bytes is ample, the doc says.
2018-07-05 17:24:38 +02:00
Dmitry Stogov
169d454593
Use zval_ptr_dtor() imstead of zval_dtor()
2018-07-05 17:55:54 +03:00
Dmitry Stogov
43d5a3665d
It's safer to use zval_ptr_dtor() for iterator keys.
2018-07-05 16:56:52 +03:00
Dmitry Stogov
d0a6b1009f
Use zval_ptr_dtor() to replace bound variables (original values nay be circular structures).
2018-07-05 16:46:38 +03:00
Dmitry Stogov
5f83904a5d
Use zval_ptr_dtor_nogc() instead of zval_dtor() inplaces where circular-references are not possible
2018-07-05 15:25:55 +03:00
Dmitry Stogov
918a9f09f8
Use zval_ptr_dtor_nogc() in JSON parser (it can't produce circular data structures)
2018-07-05 15:07:16 +03:00
Dmitry Stogov
3780b027dd
Use zval_ptr_dtor() instead of zval_dtor() in internal functions that destroy new created object (This is safer and produces less code)
2018-07-05 14:25:17 +03:00
Dmitry Stogov
91fc0d1a41
Replace zval_dtor() with specialized destructors
2018-07-05 14:17:53 +03:00
Dmitry Stogov
83f6f8563c
Use zval_ptr_dtor() instead of legacy zval_dtor(), to destroy unused values returned from PHP functions (they may be circular data structures).
2018-07-05 14:09:47 +03:00
Dmitry Stogov
273e194df5
Replace zval_dtor() with specialized destructors
2018-07-05 13:55:56 +03:00
Dmitry Stogov
77c6ca7b62
Fixed wrong zval_dtor() usage
2018-07-05 13:37:59 +03:00
Dmitry Stogov
b01d9e826c
Merge branch 'master' of git.php.net:php-src
...
* 'master' of git.php.net:php-src:
[ci skip] Fix a typo. RANGE_RANGE should be RAND_RANGE
2018-07-05 13:33:18 +03:00
Dmitry Stogov
b6fb584505
Replace zval_dtor() with specialized destructors
2018-07-05 13:32:39 +03:00
Tyson Andre
5bbe6080b4
[ci skip] Fix a typo. RANGE_RANGE should be RAND_RANGE
2018-07-05 12:11:56 +02:00
Dmitry Stogov
0d235517a3
Don't keep dangling pointer to function_name
2018-07-05 12:20:50 +03:00
Dmitry Stogov
b6cc4d2009
Use zval_ptr_dtor() instead of zval_dtor() in internal functions that destroy new created object (This is safer and produces less code)
2018-07-05 11:54:26 +03:00
Dmitry Stogov
265c3ed6cf
Fixed incorrrecr zval_dtor() usage to replace value of argument passed by reference, that may lead to memory leaks.
2018-07-05 10:57:49 +03:00
Remi Collet
587ab00698
NEW and UPGRADING
2018-07-05 06:34:08 +02:00
Remi Collet
0ea4013f10
Fixed bug #62596 add getallheaders (apache_request_headers) missing function in FPM add sapi_add_request_header in public API (was add_request_header) fix arginfo for fastcgi_finish_request fucntion
2018-07-05 06:30:58 +02:00
Dmitry Stogov
6c0ddcda47
Removed legacy zval_dtor() usage. It doesn't work with zvals with refcount == 0, anyway.
2018-07-05 02:28:00 +03:00
Dmitry Stogov
5898583e94
Fixed some incorrect zval_dtor() usages
2018-07-04 23:48:39 +03:00
Dmitry Stogov
3a8f26060c
Argument unpacking with Traversables and non-integer keys.
...
Changed error message, added UPGRADING note and test.
2018-07-04 22:34:36 +03:00
Kalle Sommer Nielsen
6337af09dc
Added test case for bug #76539 for master only as the behavior has been restored
2018-07-04 19:50:34 +02:00
Dmitry Stogov
4a475a4976
Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized destructors.
...
zval_dtor() doesn't make a lot of sense in PHP-7.* and it's used incorrectly in some places.
Its occurances should be replaced by zval_ptr_dtor() or zval_ptr_dtor_nogc(), or even more specialized destructors.
2018-07-04 19:22:24 +03:00
Christoph M. Becker
d798fd491b
[ci skip] Document GC_C() → zend_gc_get_status()
2018-07-04 12:19:29 +02:00
Dmitry Stogov
af341213f7
se zval_ptr_dtor_str() instead of zend_string_release_ex(Z_STR(*), 0)
2018-07-04 12:08:07 +03:00
Dmitry Stogov
5f19816f53
concat_function() micro optimization
2018-07-04 12:05:51 +03:00
Dmitry Stogov
d84ef96742
SEND_UNPACK should throw exception on Traversable with non-integer keys
2018-07-04 09:35:12 +03:00
Xinchen Hui
a6467af8a5
Fixed test skip
2018-07-04 11:20:28 +08:00
Xinchen Hui
36f05a80d7
Fixed build
2018-07-04 11:15:32 +08:00
Kalle Sommer Nielsen
c49f0fd9ac
Fixed bug #76501 (Funny message with fatal error)
2018-07-04 03:04:31 +02:00
Dmitry Stogov
2edf94a637
Avoid useless copying and conversion
2018-07-04 01:09:00 +03:00
Dmitry Stogov
7eb045d31a
API cleanup. Removed unused functions (kept compatibility macros).
2018-07-04 00:50:57 +03:00
Nikita Popov
e080fb6d92
Do not continue extract()ing after an exception has been thrown
...
Make behavior consistent with a loop of normal assignments.
This is not a big issue now, because $this is the only case that
may generate an error. However typed references introduce additional
error conditions, which would be silenced by this kind of behavior.
2018-07-03 22:45:35 +02:00
Anatol Belski
2af3234a09
[ci skip] Update NEWS
2018-07-03 20:03:11 +02:00
Peter Kokot
b7368fe0d0
Add missing autoconf m4 quotes
...
Two macro calls were missing quotes and in order to be able to run the
autoupdate script, this patch adds them.
2018-07-03 19:12:44 +02:00
Anatol Belski
eb41eba3fe
Remove BOM
2018-07-03 19:06:14 +02:00
Anatol Belski
682ca5fccd
Fix compilation with Firebird < 3
2018-07-03 19:04:11 +02:00
Dorin Marcoci
78f23a6dd4
Boolean data type support, added in Firebird 3. Fixes #74462 .
2018-07-03 19:04:11 +02:00
Christoph M. Becker
e51b364a50
[ci skip] Document zend_parse_parameters_none()
2018-07-03 18:58:37 +02:00
Peter Kokot
29000091b2
Remove sqlite and xmlrpc extension versions from phpinfo output
...
The rest of the core extensions don't display the extension versions in
the phpinfo output since they in most cases match the PHP release version.
2018-07-03 17:01:17 +02:00
Dmitry Stogov
14e6c0cb8c
str_replace() micro-optimization
2018-07-03 17:47:08 +03:00
Anatol Belski
7cdd732aca
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fixed bug #76564 ext/zip link issues
2018-07-03 15:46:48 +02:00
Anatol Belski
e5ef7cbe87
Fixed bug #76564 ext/zip link issues
...
Add zlib for linking directly, so then ext/zlib is not required.
2018-07-03 15:45:01 +02:00
Christoph M. Becker
a0b9f8d411
Update NEWS for 7.3.0beta1
2018-07-03 12:52:48 +00:00
Remi Collet
cb52bbfdfa
Merge branch 'PHP-7.2'
...
* PHP-7.2:
bump to 7.2.9-dev
2018-07-03 13:53:33 +02:00