]>
granicus.if.org Git - php/log
Xinchen Hui [Fri, 6 Jul 2018 11:14:44 +0000 (19:14 +0800)]
rename ref_dtor_func to rc_dtor_func
Xinchen Hui [Fri, 6 Jul 2018 10:47:30 +0000 (18:47 +0800)]
Rename zval_dtor_func and ref_dotr_func
Xinchen Hui [Fri, 6 Jul 2018 10:37:45 +0000 (18:37 +0800)]
Revert "Rename _zval_dtor_func to _ref_dtor_func"
This reverts commit
a362ae6b12419369c5cbdbb4e924915f9b196ef6 .
Xinchen Hui [Fri, 6 Jul 2018 10:32:27 +0000 (18:32 +0800)]
Rename _zval_dtor_func to _ref_dtor_func
Yousif Masoud [Sun, 1 Jul 2018 10:23:18 +0000 (11:23 +0100)]
fixes typo in daemonization DEBUG message after fork: acknoledge -> acknowledge
Dmitry Stogov [Fri, 6 Jul 2018 09:07:13 +0000 (12:07 +0300)]
Use zval_ptr_dtor() instead of zval_dtor() in in-place array/object conversion functions
Mike [Thu, 5 Jul 2018 18:42:46 +0000 (14:42 -0400)]
[ci skip] Fix typo
Dmitry Stogov [Fri, 6 Jul 2018 00:11:20 +0000 (03:11 +0300)]
Fixed reference-counting in zend_parse_arg_str_weak()
Dmitry Stogov [Fri, 6 Jul 2018 00:10:05 +0000 (03:10 +0300)]
Optimize array to object casting
Dmitry Stogov [Thu, 5 Jul 2018 22:26:43 +0000 (01:26 +0300)]
Conversion related optimizations
Dmitry Stogov [Thu, 5 Jul 2018 22:25:24 +0000 (01:25 +0300)]
Optimize object to array casting
Dmitry Stogov [Thu, 5 Jul 2018 22:24:15 +0000 (01:24 +0300)]
Avoid useless checks in object_init()
Nikita Popov [Thu, 5 Jul 2018 19:25:09 +0000 (21:25 +0200)]
Fix inverted stristr() argument order in mysqli test
Nikita Popov [Thu, 5 Jul 2018 17:11:43 +0000 (19:11 +0200)]
Merge branch 'PHP-7.2'
Nikita Popov [Thu, 5 Jul 2018 17:11:25 +0000 (19:11 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Thu, 5 Jul 2018 17:10:24 +0000 (19:10 +0200)]
Merge branch 'PHP-7.2'
Nikita Popov [Thu, 5 Jul 2018 17:09:40 +0000 (19:09 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Thu, 5 Jul 2018 17:08:00 +0000 (19:08 +0200)]
Fix string.strip_tags filter
Was segfaulting if no allowed tags are specified and performing an
out of bounds read if they were.
Anatol Belski [Thu, 5 Jul 2018 15:23:47 +0000 (17:23 +0200)]
Reduce error buffer size
120 bytes is ample, the doc says.
Dmitry Stogov [Thu, 5 Jul 2018 14:55:54 +0000 (17:55 +0300)]
Use zval_ptr_dtor() imstead of zval_dtor()
Dmitry Stogov [Thu, 5 Jul 2018 13:56:52 +0000 (16:56 +0300)]
It's safer to use zval_ptr_dtor() for iterator keys.
Dmitry Stogov [Thu, 5 Jul 2018 13:46:38 +0000 (16:46 +0300)]
Use zval_ptr_dtor() to replace bound variables (original values nay be circular structures).
Dmitry Stogov [Thu, 5 Jul 2018 12:25:55 +0000 (15:25 +0300)]
Use zval_ptr_dtor_nogc() instead of zval_dtor() inplaces where circular-references are not possible
Dmitry Stogov [Thu, 5 Jul 2018 12:07:16 +0000 (15:07 +0300)]
Use zval_ptr_dtor_nogc() in JSON parser (it can't produce circular data structures)
Dmitry Stogov [Thu, 5 Jul 2018 11:25:17 +0000 (14:25 +0300)]
Use zval_ptr_dtor() instead of zval_dtor() in internal functions that destroy new created object (This is safer and produces less code)
Dmitry Stogov [Thu, 5 Jul 2018 11:17:53 +0000 (14:17 +0300)]
Replace zval_dtor() with specialized destructors
Dmitry Stogov [Thu, 5 Jul 2018 11:09:47 +0000 (14:09 +0300)]
Use zval_ptr_dtor() instead of legacy zval_dtor(), to destroy unused values returned from PHP functions (they may be circular data structures).
Dmitry Stogov [Thu, 5 Jul 2018 10:55:56 +0000 (13:55 +0300)]
Replace zval_dtor() with specialized destructors
Dmitry Stogov [Thu, 5 Jul 2018 10:37:59 +0000 (13:37 +0300)]
Fixed wrong zval_dtor() usage
Dmitry Stogov [Thu, 5 Jul 2018 10:33:18 +0000 (13:33 +0300)]
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
Dmitry Stogov [Thu, 5 Jul 2018 10:32:39 +0000 (13:32 +0300)]
Replace zval_dtor() with specialized destructors
Tyson Andre [Wed, 4 Jul 2018 21:09:21 +0000 (14:09 -0700)]
[ci skip] Fix a typo. RANGE_RANGE should be RAND_RANGE
Dmitry Stogov [Thu, 5 Jul 2018 09:20:50 +0000 (12:20 +0300)]
Don't keep dangling pointer to function_name
Dmitry Stogov [Thu, 5 Jul 2018 08:54:26 +0000 (11:54 +0300)]
Use zval_ptr_dtor() instead of zval_dtor() in internal functions that destroy new created object (This is safer and produces less code)
Dmitry Stogov [Thu, 5 Jul 2018 07:57:49 +0000 (10:57 +0300)]
Fixed incorrrecr zval_dtor() usage to replace value of argument passed by reference, that may lead to memory leaks.
Remi Collet [Thu, 5 Jul 2018 04:34:08 +0000 (06:34 +0200)]
NEW and UPGRADING
Remi Collet [Wed, 4 Jul 2018 06:48:38 +0000 (08:48 +0200)]
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
Dmitry Stogov [Wed, 4 Jul 2018 23:28:00 +0000 (02:28 +0300)]
Removed legacy zval_dtor() usage. It doesn't work with zvals with refcount == 0, anyway.
Dmitry Stogov [Wed, 4 Jul 2018 20:48:39 +0000 (23:48 +0300)]
Fixed some incorrect zval_dtor() usages
Dmitry Stogov [Wed, 4 Jul 2018 19:34:36 +0000 (22:34 +0300)]
Argument unpacking with Traversables and non-integer keys.
Changed error message, added UPGRADING note and test.
Kalle Sommer Nielsen [Wed, 4 Jul 2018 17:50:34 +0000 (19:50 +0200)]
Added test case for bug #76539 for master only as the behavior has been restored
Dmitry Stogov [Wed, 4 Jul 2018 16:22:24 +0000 (19:22 +0300)]
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.
Christoph M. Becker [Wed, 4 Jul 2018 10:19:29 +0000 (12:19 +0200)]
[ci skip] Document GC_C() → zend_gc_get_status()
Dmitry Stogov [Wed, 4 Jul 2018 09:08:07 +0000 (12:08 +0300)]
se zval_ptr_dtor_str() instead of zend_string_release_ex(Z_STR(*), 0)
Dmitry Stogov [Wed, 4 Jul 2018 09:05:51 +0000 (12:05 +0300)]
concat_function() micro optimization
Dmitry Stogov [Wed, 4 Jul 2018 06:35:12 +0000 (09:35 +0300)]
SEND_UNPACK should throw exception on Traversable with non-integer keys
Xinchen Hui [Wed, 4 Jul 2018 03:19:25 +0000 (11:19 +0800)]
Fixed test skip
Xinchen Hui [Wed, 4 Jul 2018 03:15:32 +0000 (11:15 +0800)]
Fixed build
Kalle Sommer Nielsen [Wed, 4 Jul 2018 01:04:31 +0000 (03:04 +0200)]
Fixed bug #76501 (Funny message with fatal error)
Dmitry Stogov [Tue, 3 Jul 2018 22:09:00 +0000 (01:09 +0300)]
Avoid useless copying and conversion
Dmitry Stogov [Tue, 3 Jul 2018 21:50:57 +0000 (00:50 +0300)]
API cleanup. Removed unused functions (kept compatibility macros).
Nikita Popov [Tue, 3 Jul 2018 20:44:41 +0000 (22:44 +0200)]
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.
Anatol Belski [Tue, 3 Jul 2018 18:03:11 +0000 (20:03 +0200)]
[ci skip] Update NEWS
Peter Kokot [Tue, 3 Jul 2018 13:10:22 +0000 (15:10 +0200)]
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.
Anatol Belski [Tue, 3 Jul 2018 17:06:14 +0000 (19:06 +0200)]
Remove BOM
Anatol Belski [Tue, 3 Jul 2018 17:00:19 +0000 (19:00 +0200)]
Fix compilation with Firebird < 3
Dorin Marcoci [Sat, 13 May 2017 14:27:15 +0000 (17:27 +0300)]
Boolean data type support, added in Firebird 3. Fixes #74462.
Christoph M. Becker [Tue, 3 Jul 2018 16:58:07 +0000 (18:58 +0200)]
[ci skip] Document zend_parse_parameters_none()
Peter Kokot [Sat, 30 Jun 2018 17:59:13 +0000 (19:59 +0200)]
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.
Dmitry Stogov [Tue, 3 Jul 2018 14:47:08 +0000 (17:47 +0300)]
str_replace() micro-optimization
Anatol Belski [Tue, 3 Jul 2018 13:46:48 +0000 (15:46 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fixed bug #76564 ext/zip link issues
Anatol Belski [Tue, 3 Jul 2018 13:45:01 +0000 (15:45 +0200)]
Fixed bug #76564 ext/zip link issues
Add zlib for linking directly, so then ext/zlib is not required.
Christoph M. Becker [Tue, 3 Jul 2018 12:52:48 +0000 (12:52 +0000)]
Update NEWS for 7.3.0beta1
Remi Collet [Tue, 3 Jul 2018 11:53:33 +0000 (13:53 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
bump to 7.2.9-dev
Remi Collet [Tue, 3 Jul 2018 11:52:04 +0000 (13:52 +0200)]
bump to 7.2.9-dev
Dmitry Stogov [Tue, 3 Jul 2018 10:10:22 +0000 (13:10 +0300)]
Eliminated REFCOUNTED checks on persistent constant operands in SEND_VAL[_EX] and QM_ASSIGN.
Dmitry Stogov [Tue, 3 Jul 2018 09:58:50 +0000 (12:58 +0300)]
Merge branch 'bug63217'
* bug63217:
Another fix for bug #63217
Partial revert of
30156d588c07e26d4e752ddb62344e96854d4773
Dmitry Stogov [Tue, 3 Jul 2018 08:07:39 +0000 (11:07 +0300)]
Better hot/cold code splitting
Dmitry Stogov [Mon, 2 Jul 2018 22:09:58 +0000 (01:09 +0300)]
Another fix for bug #63217
Nikita Popov [Mon, 2 Jul 2018 19:33:09 +0000 (21:33 +0200)]
Fix check for invoking abstract method
Nikita Popov [Mon, 2 Jul 2018 19:24:38 +0000 (21:24 +0200)]
Add $ before property name in error message
Dmitry Stogov [Mon, 2 Jul 2018 17:54:44 +0000 (20:54 +0300)]
Nikita Popov [Mon, 2 Jul 2018 16:57:31 +0000 (18:57 +0200)]
Merge branch 'PHP-7.2'
Nikita Popov [Mon, 2 Jul 2018 16:57:14 +0000 (18:57 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Mon, 2 Jul 2018 16:56:27 +0000 (18:56 +0200)]
Fixed bug #75231
The behavior is now consistent with ReflectionMethod.
Nikita Popov [Mon, 2 Jul 2018 16:29:17 +0000 (18:29 +0200)]
Remove unnecessary explicit argc check
Instead specify a default value for the argument, which is more
idiomatic.
Nikita Popov [Mon, 2 Jul 2018 16:26:48 +0000 (18:26 +0200)]
Remove METHOD_NOTSTATIC checks in reflection
PHP does not allow static calls to non-static internal methods
anyway, so these checks are redundant.
Nikita Popov [Mon, 2 Jul 2018 15:59:20 +0000 (17:59 +0200)]
Merge branch 'PHP-7.2'
Nikita Popov [Mon, 2 Jul 2018 15:58:53 +0000 (17:58 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Mon, 2 Jul 2018 15:58:26 +0000 (17:58 +0200)]
Fix test after serialization change
And move it to a more appropriate location.
Nikita Popov [Mon, 2 Jul 2018 15:29:57 +0000 (17:29 +0200)]
Merge branch 'PHP-7.2'
Nikita Popov [Mon, 2 Jul 2018 15:28:45 +0000 (17:28 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Mon, 2 Jul 2018 15:24:35 +0000 (17:24 +0200)]
Fixed bug #74670
Validate that "C" serialization payload is followed by "}" prior to
calling the unserialize() handler. This mitigates issues caused by
unserialize() not correctly handling strings that are not NUL
terminated. Making sure that there is a "}" at the end avoids the
problem.
Rudi Theunissen [Thu, 28 Jun 2018 22:56:30 +0000 (18:56 -0400)]
Fixed bug #63217
Don't automatically convert literal string keys to integers on
array access, as we may be dealing with an ArrayAccess object,
rather than a plain array.
Anatol Belski [Mon, 2 Jul 2018 14:07:25 +0000 (16:07 +0200)]
Remove the forked test and adjust the original one
Dmitry Stogov [Mon, 2 Jul 2018 14:03:50 +0000 (17:03 +0300)]
Avoid magic method hash lookups
Dmitry Stogov [Mon, 2 Jul 2018 14:03:02 +0000 (17:03 +0300)]
Avoid string comparisons for magic methods (all magic methods start with "__")
Anatol Belski [Mon, 2 Jul 2018 10:12:39 +0000 (12:12 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Update libs_version.txt
Anatol Belski [Mon, 2 Jul 2018 10:12:02 +0000 (12:12 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Update libs_version.txt
Anatol Belski [Mon, 2 Jul 2018 10:09:54 +0000 (12:09 +0200)]
Update libs_version.txt
Jakub Zelenka [Mon, 18 Jun 2018 13:05:12 +0000 (14:05 +0100)]
Add ssl/tls streams options for min and max proto version
Jakub Zelenka [Sun, 1 Jul 2018 17:27:36 +0000 (18:27 +0100)]
Update NEWS, UPGRADING and default php.ini files with syslog changes
Philip Prindeville [Tue, 22 Aug 2017 22:34:06 +0000 (16:34 -0600)]
Add syslog's ident and facility parameters to config
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Christoph M. Becker [Sat, 30 Jun 2018 22:23:06 +0000 (00:23 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Make newly introduced bug76556.phpt more resilient
Christoph M. Becker [Sat, 30 Jun 2018 22:21:34 +0000 (00:21 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Make newly introduced bug76556.phpt more resilient
Christoph M. Becker [Sat, 30 Jun 2018 22:16:09 +0000 (00:16 +0200)]
Make newly introduced bug76556.phpt more resilient
Obviously, different compilers mangle the C++ class name differently.
We should neither expect a prefix nor a suffix.
Christoph M. Becker [Sat, 30 Jun 2018 21:21:30 +0000 (23:21 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fix #76556: get_debug_info handler for BreakIterator shows wrong type
Christoph M. Becker [Sat, 30 Jun 2018 21:16:50 +0000 (23:16 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fix #76556: get_debug_info handler for BreakIterator shows wrong type
Christoph M. Becker [Sat, 30 Jun 2018 17:41:55 +0000 (19:41 +0200)]
Fix #76556: get_debug_info handler for BreakIterator shows wrong type
We use the retrieved type for the "type" element instead of the text.
This has been confused during the PHP 7 upgrade[1].
[1] http://git.php.net/?p=php-src.git;a=commit;h=
1d793348067e5769144c0f7efd86428a4137baec
Nikita Popov [Sat, 30 Jun 2018 18:14:15 +0000 (20:14 +0200)]
Add test for void return type on internal function