1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 17:08:14 +02:00
Commit Graph

115291 Commits

Author SHA1 Message Date
Nikita Popov 004f31c434 Merge branch 'PHP-7.4' 2019-09-09 17:19:12 +02:00
Tyson Andre 3e89e9a636 Add opcache return type for random_int()
random_int() will throw for incorrect argument counts, types (e.g. float
that can't cast to int), or having min > max.

See ext/standard/random.c
2019-09-09 17:19:04 +02:00
Nikita Popov f2b7a4393a Merge branch 'PHP-7.4' 2019-09-09 17:15:41 +02:00
Tyson Andre 45e529d673 Fix opcache zend_func_info for microtime/gettimeofday
microtime() doesn't return an array,
and gettimeofday() doesn't return a string.
See _php_gettimeofday in microtime.c (mode is non-zero for gettimeofday)
2019-09-09 17:13:19 +02:00
Nikita Popov 974e77b345 Clarify that our usage of gettimeofday() is infallible
And that false can't be returned for this reason.
2019-09-09 17:11:22 +02:00
Christoph M. Becker c4931715c0 Merge branch 'PHP-7.4'
* PHP-7.4:
  Fix version
2019-09-09 15:44:56 +02:00
Christoph M. Becker d9c0aa038b Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
  Fix version
2019-09-09 15:44:36 +02:00
Christoph M. Becker 73ede6911d Fix version
7.3.10 is next, not 7.3.11.
2019-09-09 15:44:06 +02:00
Christoph M. Becker 8c7ee916ee Merge branch 'PHP-7.4'
* PHP-7.4:
  Fix #78510: Partially uninitialized buffer returned by sodium_crypto_generichash_init()
2019-09-09 15:33:36 +02:00
Christoph M. Becker 167ea6307b Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
  Fix #78510: Partially uninitialized buffer returned by sodium_crypto_generichash_init()
2019-09-09 15:33:02 +02:00
Christoph M. Becker af2033b1cd Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
  Fix #78510: Partially uninitialized buffer returned by sodium_crypto_generichash_init()
2019-09-09 15:31:15 +02:00
Christoph M. Becker 8ead77936e Fix #78510: Partially uninitialized buffer returned by sodium_crypto_generichash_init()
Backport jedisct1/libsodium.php@28d13bf437.
2019-09-09 15:30:28 +02:00
Nikita Popov c288dfc075 Merge branch 'PHP-7.4' 2019-09-09 14:24:39 +02:00
Nikita Popov 7807319b7c Fix typo 2019-09-09 14:24:26 +02:00
Remi Collet 8aab32ff5f Merge branch 'PHP-7.4'
* PHP-7.4:
  zip edxtension is now 1.15.5
  fix type consistency after 8f897f1040
2019-09-09 14:22:24 +02:00
Remi Collet a7b00f8787 zip edxtension is now 1.15.5 2019-09-09 14:22:12 +02:00
Remi Collet 766d5ff32f fix type consistency after
8f897f1040
2019-09-09 14:20:57 +02:00
Nikita Popov f16ad678f7 Merge branch 'PHP-7.4' 2019-09-09 11:37:36 +02:00
Nikita Popov 36a8cf5182 Fixed bug #78514
The property class may have already been translated as part of
some other class. Only translate if xlat returns non-null.
2019-09-09 11:36:50 +02:00
Nikita Popov 09e9c4f3c1 Merge branch 'PHP-7.4' 2019-09-09 10:50:30 +02:00
Nikita Popov 66caca53ce Fix PDO pgsql memory leak with scrollable cursors 2019-09-09 10:50:10 +02:00
Nikita Popov 7b0eb5b9be Merge branch 'PHP-7.4' 2019-09-09 10:11:54 +02:00
Nikita Popov 645b0372e3 Fix double free of DSN credentials 2019-09-09 10:10:41 +02:00
Peter Kokot 3cebb99773 Merge branch 'PHP-7.4'
* PHP-7.4:
  Update NEWS
  Fix #78349: Bundled pcre2 library missing LICENCE file
2019-09-08 21:50:06 +02:00
Peter Kokot f5dfea60a2 Update NEWS 2019-09-08 21:49:42 +02:00
Peter Kokot a8c97f0531 Fix #78349: Bundled pcre2 library missing LICENCE file
Most bundled libraries in PHP code already include license information
in the dedicated README.REDIST.BINS file. Instead of complicating
documentation files more this patch only updates the PCRE license info
in the readme file.
2019-09-08 21:46:48 +02:00
蝦米 66f3fc9f79 fix missing close bracket
[ci skip][skip ci]
2019-09-08 18:09:43 +02:00
Nikita Popov 81fcd76a25 Merge branch 'PHP-7.4' 2019-09-07 22:48:12 +02:00
Nikita Popov 279f745a60 Fix reporting of redirect test failures in junit
These were being reported under the wrong name ... which means that
they don't show up as failures on azure :(
2019-09-07 22:47:50 +02:00
Dmitry Stogov bf501cbbea Merge branch 'PHP-7.4'
* PHP-7.4:
  Link executable files using non PIC object files. This reduces PIC overhead and improves performance.
2019-09-07 11:59:26 +03:00
Dmitry Stogov eef85229d0 Link executable files using non PIC object files. This reduces PIC overhead and improves performance. 2019-09-07 11:59:11 +03:00
Nikita Popov ee4b11c668 Detect calls to abstract methods in get_method() already
Instead of checking for this during DO_FCALL, already detect this
case during get_method()/get_static_method(), similar to visibility
checks.

This causes a minor difference in behavior, in that arguments will
no longer be evaluated. I think this is correct though (and consistent
with visibility errors).
2019-09-06 15:05:24 +02:00
Nikita Popov 8522cdd6fa Merge branch 'PHP-7.4' 2019-09-06 15:00:17 +02:00
Nikita Popov 768c93ed13 Remove defines for specific oraldap versions
These are not used for anything.
2019-09-06 14:59:59 +02:00
Nikita Popov 148ee16ff3 Remove support for umich_ldap
Doesn't seem to exist anymore, and their website now redirects to
openldap.
2019-09-06 14:57:26 +02:00
Nikita Popov 2789ad982e Merge branch 'PHP-7.4' 2019-09-06 14:48:31 +02:00
Nikita Popov 025ff3b5a3 Remove nsldap support
The newest version we're checking (libssldap50) seems to be about
15 years out of date. We could add support for libssldap60 (also
unmainted, but more recent), but given how nobody has expressed any
interest in this, I'm going ahead and dropping this code.
2019-09-06 14:39:42 +02:00
Nikita Popov 675e3c33cb Merge branch 'PHP-7.4' 2019-09-06 14:36:50 +02:00
Nikita Popov 34f4ad61dc Fix detection of gmp on clang
Split the default and custom path case. If the default is used,
assume that the library must be on the default include and lib path.
Only check that the version is appropriate.

Something similar is needed for ldap, but the checking code is much
more complex there, so I'm only adding a workaround for now.
2019-09-06 14:35:39 +02:00
Nikita Popov 790ed7d540 Enable display_startup_errors by default 2019-09-06 14:33:03 +02:00
Nikita Popov e530a89c00 Merge branch 'PHP-7.4' 2019-09-06 11:33:36 +02:00
Nikita Popov e81751ceac Fixed bug #78502
We need to make sure that the function is fully compiled before we
calculate the stack size. There already was a check for directly
recursive calls, but the same issue exists with indirectly recursive
calls.

I'm using DONE_PASS_TWO as the indication that the function is
fully compiled.
2019-09-06 11:33:28 +02:00
Dmitry Stogov 64b2ee606c Merge branch 'non_pic'
* non_pic:
  Link executable files using non PIC object files. This reduces PIC overhead and improves performance.
2019-09-06 11:45:43 +03:00
Christoph M. Becker 53c002e257 Merge branch 'PHP-7.4'
* PHP-7.4:
  Fix version
2019-09-05 19:37:43 +02:00
Christoph M. Becker f895b7557e Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
  Fix version
2019-09-05 19:35:12 +02:00
Christoph M. Becker 8c9efdf720 Fix version
7.3.10 is next, not 7.3.11.
2019-09-05 19:33:17 +02:00
Stanislav Malyshev 58dd6996d1 Merge branch 'PHP-7.4'
* PHP-7.4:
  fix version
2019-09-05 09:56:20 -07:00
Stanislav Malyshev df35d5cc21 Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
  fix version
2019-09-05 09:55:54 -07:00
Stanislav Malyshev 60cfa5781a fix version 2019-09-05 09:54:43 -07:00
Nikita Popov edf5896a4e Merge branch 'PHP-7.4' 2019-09-05 18:29:30 +02:00