1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 18:23:26 +02:00
Commit Graph

14237 Commits

Author SHA1 Message Date
Nikita Popov b90730c762 Merge branch 'PHP-7.4' 2019-03-04 12:24:09 +01:00
Nikita Popov deb44d405e Revert "Detect invalid uses of parent:: during compilation"
This reverts commit a9e6667817.

Breakage found in the wild: Mockery uses a parent:: call in the
implementation regardless of whether the class has a parent or not:
https://github.com/mockery/mockery/blob/4324afeaf9d95b492507e6587abb3f024e2576de/library/Mockery/Mock.php#L600

This change is not worth the compat break in 7.4.
2019-03-04 12:24:02 +01:00
Peter Kokot 22259ab202 Merge branch 'PHP-7.4'
* PHP-7.4:
  Remove outdated hack for AIX 4
2019-03-03 14:51:44 +01:00
Peter Kokot d6dac94ab1 Remove outdated hack for AIX 4
AIX 4 is not supported anymore for a while. This hack was added very
long time ago into PHP and is not needed anymore.
2019-03-03 14:51:36 +01:00
Peter Kokot b68c6db7ee Merge branch 'PHP-7.4'
* PHP-7.4:
  Remove AC_PROG_CC_C_O
2019-03-03 14:49:10 +01:00
Peter Kokot 6bb657fc34 Remove AC_PROG_CC_C_O
The AC_PROG_CC_C_O macro checks if compiler can use both -c and -o
options together and if not it defines the NO_MINUS_C_MINUS_O symbol.
It is not used in current codebase and therefore removed.
2019-03-03 14:47:49 +01:00
Peter Kokot 64f71c6f2f Merge branch 'PHP-7.4'
* PHP-7.4:
  Remove LIBZEND_CHECK_INT_TYPE and PHP_CHECK_TYPES
2019-03-02 13:42:55 +01:00
Peter Kokot 7431eb72fe Remove LIBZEND_CHECK_INT_TYPE and PHP_CHECK_TYPES
Checking for int32_t and uint32_t types is already done by the
PHP_CHECK_STDINT_TYPES m4 macro.

The PHP_CHECK_TYPES m4 macro has been once used by the mysqlnd and has
been removed via 14caf174ff and
additionally, the internal unused macro _PHP_DEF_HAVE_FILE has been
removed.

Additionally, the unused PHP_HAVE_STDINT_TYPES symbol has been removed.
2019-03-02 12:23:21 +01:00
Peter Kokot ac6b9b0b7f Merge branch 'PHP-7.4'
* PHP-7.4:
  Remove obsolescent AC_HEADER_STDC and memcpy check
2019-03-01 19:24:06 +01:00
Peter Kokot a700451706 Remove obsolescent AC_HEADER_STDC and memcpy check
Autoconf 2.59d (released in 2006) [1] started promoting several macros
as not relevant for newer systems anymore, including the `AC_HEADER_STDC`.

This macro checks if given system has C89 compliant header files such
as `<string.h>`, `<stdlib.h>`, `<stdarg.h>`, `<float.h>`,... and defines
the `STDC_HEADERS` symbol [2]. Case is that current systems should be
well supported with at least C89 standard headers [3].

Given headers are still additionally checked with the `AC_PROG_CC`
macro, yet not needed anyway.

Additionally, the HAVE_MEMCPY check has been removed. The memcpy
function is standardized by C89 and later.

Refs:
[1] http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
[2] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
[3] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
2019-03-01 19:22:44 +01:00
Nikita Popov 472f577679 Merge branch 'PHP-7.4'
[ci skip]
2019-03-01 16:14:20 +01:00
c9s 7c351ba65c Fix out-dated docs and typo
[ci skip]
2019-03-01 16:14:11 +01:00
Nikita Popov 388ad58f57 Merge branch 'PHP-7.4' 2019-03-01 14:35:41 +01:00
Nikita Popov df93506f56 Merge branch 'PHP-7.3' into PHP-7.4 2019-03-01 14:35:26 +01:00
Nikita Popov 4dc0662eca Check for NULL GC type in objects_store_del
This might happen if OBJ_RELEASE is used on an object that was already
released by GC. Specific cases of this issue were previously fixed in
ffaee27478 and
72104d2b6e, however the issue still
affects 3rd-party extensions using OBJ_RELEASE.

The whole GC type NULL + OBJ_IS_VALID + IS_FREE_CALLED system seems
overly complicated and can probably be simplified in 7.4.
2019-03-01 14:32:11 +01:00
Dmitry Stogov 66ec79ee63 Merge branch 'PHP-7.4'
* PHP-7.4:
  Unused parameter
2019-03-01 14:34:58 +03:00
Dmitry Stogov c896b3ea48 Unused parameter 2019-03-01 14:34:17 +03:00
Dmitry Stogov 20e8b01437 Merge branch 'PHP-7.4'
* PHP-7.4:
  Keep original debug info
2019-03-01 14:12:16 +03:00
Dmitry Stogov a1109b28f4 Keep original debug info 2019-03-01 14:11:37 +03:00
Nikita Popov 6130e56356 Merge branch 'PHP-7.4' 2019-02-28 17:24:13 +01:00
Nikita Popov ff315098f4 Free map_base_ptr during post_startup 2019-02-28 17:23:18 +01:00
Nikita Popov 13b94dbb60 Merge branch 'PHP-7.4' 2019-02-28 16:15:13 +01:00
Nikita Popov 89a7b7cc96 Fix leak in resolve_property_types
We need to free the original string as well, not just the lowercased
one.
2019-02-28 16:14:56 +01:00
Bob Weinand 4ad3d23744 Merge branch 'PHP-7.4' 2019-02-28 09:11:50 +01:00
Bob Weinand 9d5db37cee Fix test (order of warning / notice changes due to delaying until runtime) 2019-02-28 09:10:35 +01:00
Peter Kokot 1433e176be Merge branch 'PHP-7.4'
* PHP-7.4:
  Remove ZEND_FP_EXCEPT macro and HAVE_FP_EXCEPT
2019-02-27 22:54:23 +01:00
Peter Kokot 00e050e7c7 Remove ZEND_FP_EXCEPT macro and HAVE_FP_EXCEPT
Usage of the HAVE_FP_EXCEPT symbol has been removed via
c334058412 and isn't used in current code
anymore.
2019-02-27 22:53:55 +01:00
Bob Weinand 76e3828978 Merge branch 'PHP-7.4' 2019-02-27 18:47:03 +01:00
Bob Weinand 94d3e40102 Delay array to string conversion notice until runtime 2019-02-27 18:46:31 +01:00
Bob Weinand 186431e5e1 Merge branch 'PHP-7.4' 2019-02-27 13:02:32 +01:00
Bob Weinand a72c741624 Uncomment cleanup for runtime_compile_time_binary_operands.phpt 2019-02-27 13:02:14 +01:00
rjhdby fcfec9102b Add runtime_compile_time_binary_operands.phpt 2019-02-27 12:59:06 +01:00
Joe Watkins 0e391d14bf Merge branch 'PHP-7.4'
* PHP-7.4:
  Fix #77673 ReflectionClass::getDefaultProperties returns spooky array
2019-02-27 09:18:20 +01:00
Joe Watkins 1ca9d818b8 Fix #77673 ReflectionClass::getDefaultProperties returns spooky array 2019-02-27 09:17:09 +01:00
Nikita Popov 3133110fbf Merge branch 'PHP-7.4' 2019-02-25 17:45:35 +01:00
Benjamin Eberlei d303225c3a Make regex replacements in zend_vm_gen.php more obvious
Change specializing preg_replace code in VM to be map of search to
replacement for easier understanding.
2019-02-25 17:44:26 +01:00
Nikita Popov d5ff57477b Merge branch 'PHP-7.4' 2019-02-25 13:03:26 +01:00
Nikita Popov a8daef51e1 Merge branch 'PHP-7.3' into PHP-7.4 2019-02-25 13:02:58 +01:00
Nikita Popov 461e140afc Merge branch 'PHP-7.2' into PHP-7.3 2019-02-25 13:01:18 +01:00
Nikita Popov af37d58cf7 Fix assertion in Exception::getMessage() if $message is a ref
And same for other properties. Encountered in Symfony.
2019-02-25 13:00:16 +01:00
Xinchen Hui 761b0639bb Merge branch 'PHP-7.3'
* PHP-7.3:
  Fixed compiler warning
2019-02-25 15:04:13 +08:00
Xinchen Hui 4ac954ac3e Fixed compiler warning 2019-02-25 15:04:04 +08:00
Xinchen Hui 249f7df221 Merge branch 'PHP-7.3'
* PHP-7.3:
  Update NEWS
  Fixed bug #77660 (Segmentation fault on break 2147483648)
2019-02-25 15:00:44 +08:00
Xinchen Hui e8768b338c Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
  Fixed bug #77660 (Segmentation fault on break 2147483648)
2019-02-25 15:00:23 +08:00
Xinchen Hui 1c22ace058 Fixed bug #77660 (Segmentation fault on break 2147483648) 2019-02-25 15:00:14 +08:00
Peter Kokot 20addf88e4 Merge branch 'PHP-7.4'
* PHP-7.4:
  Remove unused PHP_AC_BROKEN_SPRINTF and AC_ZEND_BROKEN_SPRINTF
2019-02-23 22:29:16 +01:00
Peter Kokot b33fa18eab Remove unused PHP_AC_BROKEN_SPRINTF and AC_ZEND_BROKEN_SPRINTF
The sprintf function has been normalized to php_sprintf via
61364b5bb1.

This patch removes the checks to make a custom sprintf function

The ZEND_BROKEN_SPRINTF has been removed and the
hardcoded #define zend_sprintf sprintf is used.

The php_sprintf and zend_sprintf are now symbols to sprintf.

This patch now removes the custom PHP definitions of the php_sprintf and
zend_sprintf functions in favor of the C99 sprintf which is also
standardized in C89 already. Once, on some systems sprintf didn't behave
in same way.
2019-02-23 22:26:47 +01:00
Nikita Popov 276de41014 Merge branch 'PHP-7.4' 2019-02-22 15:44:13 +01:00
Nikita Popov 52605aafc5 Fix anon class handling in ext mode
Opcode order changes in 7.4 and the EXT_STMT is now declare the
DECLARE_ANON. Fix this by returning the opline from compile_class_decl
to avoid any fragile opcode searching.
2019-02-22 15:43:08 +01:00
Nikita Popov 287f5ccdaf Merge branch 'PHP-7.4' 2019-02-22 10:15:02 +01:00