]> granicus.if.org Git - php/log
php
6 years agofixed typo
Dmitry Stogov [Tue, 20 Nov 2018 09:53:05 +0000 (12:53 +0300)]
fixed typo

6 years agoOptimization
Dmitry Stogov [Tue, 20 Nov 2018 08:55:16 +0000 (11:55 +0300)]
Optimization

6 years agoFix typo in tests
Fabien Villepinte [Mon, 19 Nov 2018 20:17:21 +0000 (21:17 +0100)]
Fix typo in tests

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Sun, 18 Nov 2018 13:41:44 +0000 (14:41 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  [ci skip] Update NEWS
  [ci skip] Update NEWS
  [ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Sun, 18 Nov 2018 13:41:14 +0000 (14:41 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  [ci skip] Update NEWS
  [ci skip] Update NEWS

6 years ago[ci skip] Update NEWS
Anatol Belski [Sun, 18 Nov 2018 13:40:00 +0000 (14:40 +0100)]
[ci skip] Update NEWS

6 years ago[ci skip] Update NEWS
Anatol Belski [Sun, 18 Nov 2018 13:38:35 +0000 (14:38 +0100)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Sun, 18 Nov 2018 13:37:56 +0000 (14:37 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  [ci skip] Update NEWS

6 years ago[ci skip] Update NEWS
Anatol Belski [Sun, 18 Nov 2018 13:37:04 +0000 (14:37 +0100)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Sun, 18 Nov 2018 11:34:04 +0000 (12:34 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fixed bug #77047 pg_convert has a broken regex for the 'TIME WITHOUT TIMEZONE' data type

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Sun, 18 Nov 2018 11:33:35 +0000 (12:33 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fixed bug #77047 pg_convert has a broken regex for the 'TIME WITHOUT TIMEZONE' data type

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Sun, 18 Nov 2018 11:32:47 +0000 (12:32 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fixed bug #77047 pg_convert has a broken regex for the 'TIME WITHOUT TIMEZONE' data type

6 years agoFixed bug #77047 pg_convert has a broken regex for the 'TIME WITHOUT TIMEZONE' data...
Anatol Belski [Sun, 18 Nov 2018 11:29:34 +0000 (12:29 +0100)]
Fixed bug #77047 pg_convert has a broken regex for the 'TIME WITHOUT TIMEZONE' data type

Backport 369c991d and 282a63da to 7.1, closes #3634

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Sun, 18 Nov 2018 10:52:33 +0000 (11:52 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Add test for bug #77047
  FIX #77047: fixes regex for "time" data type

6 years agoAdd test for bug #77047
Anatol Belski [Sun, 18 Nov 2018 10:52:00 +0000 (11:52 +0100)]
Add test for bug #77047

6 years agoFIX #77047: fixes regex for "time" data type
andy [Mon, 22 Oct 2018 14:57:28 +0000 (08:57 -0600)]
FIX #77047: fixes regex for "time" data type

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Sat, 17 Nov 2018 22:03:14 +0000 (23:03 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  [ci skip] Update NEWS
  [ci skip] Update NEWS

6 years ago[ci skip] Update NEWS
Anatol Belski [Sat, 17 Nov 2018 22:01:17 +0000 (23:01 +0100)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Sat, 17 Nov 2018 22:00:50 +0000 (23:00 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  [ci skip] Update NEWS

6 years ago[ci skip] Update NEWS
Anatol Belski [Sat, 17 Nov 2018 22:00:12 +0000 (23:00 +0100)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Sat, 17 Nov 2018 21:57:16 +0000 (22:57 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Simplify assignment on 64-bit

6 years agoSimplify assignment on 64-bit
Anatol Belski [Sat, 17 Nov 2018 21:56:39 +0000 (22:56 +0100)]
Simplify assignment on 64-bit

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Fri, 16 Nov 2018 22:23:00 +0000 (23:23 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fixed bug #77111 php-win.exe corrupts unicode symbols from cli parameters

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Fri, 16 Nov 2018 22:22:19 +0000 (23:22 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fixed bug #77111 php-win.exe corrupts unicode symbols from cli parameters

6 years agoFixed bug #77111 php-win.exe corrupts unicode symbols from cli parameters
Anatol Belski [Fri, 16 Nov 2018 22:19:33 +0000 (23:19 +0100)]
Fixed bug #77111 php-win.exe corrupts unicode symbols from cli parameters

The binary can be of course used on console, for whatever reasons, so
UNICODE API should be used in that case. That might however not work as
expected, if the binary is used for a service.

6 years agoRemove some mentions of RECOVERABLE_ERROR in tests
Nikita Popov [Thu, 15 Nov 2018 20:12:47 +0000 (21:12 +0100)]
Remove some mentions of RECOVERABLE_ERROR in tests

Mostly drop error handlers that are no longer necessary.

6 years agoFix leaks
Nikita Popov [Thu, 15 Nov 2018 20:34:02 +0000 (21:34 +0100)]
Fix leaks

For some reason I'm no longer getting memory leak errors for my
local build :/

6 years agoCheck for zero SplPriorityQueue extract flags earlier
Nikita Popov [Thu, 15 Nov 2018 20:05:05 +0000 (21:05 +0100)]
Check for zero SplPriorityQueue extract flags earlier

Generate an exception during the SplPriorityQueue::setExtracFlags()
call instead of generating E_RECOVERABLE_FATAL all over the place
later.

6 years agoOptimize SplPriorityQueue implementation
Nikita Popov [Thu, 15 Nov 2018 19:49:37 +0000 (20:49 +0100)]
Optimize SplPriorityQueue implementation

Do not create an array with two keys for every element. That's a
huge waste of memory. Instead we allocate a two-element structure.
This reduces memory usage and avoids having to perform hashtable
lookups to get at the data and priority.

The only thing this might impact negatively is the non-default
EXTR_BOTH mode, in which case the array has to be created anyway.

6 years agoUse ZEND_THIS macro to hide implementation details in extensions code.
Dmitry Stogov [Thu, 15 Nov 2018 16:54:19 +0000 (19:54 +0300)]
Use ZEND_THIS macro to hide implementation details in extensions code.

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Thu, 15 Nov 2018 16:17:06 +0000 (17:17 +0100)]
Merge branch 'PHP-7.3'

6 years agoFixed bug #77165
Nikita Popov [Thu, 15 Nov 2018 16:13:12 +0000 (17:13 +0100)]
Fixed bug #77165

Also add some helper macros for PROTECT/UNPROTECT that check for
IMMUTABLE. These checks are needed for nearly any use of
PROTECT/UNPROTECT.

6 years agomicro-optimization
Dmitry Stogov [Thu, 15 Nov 2018 15:47:23 +0000 (18:47 +0300)]
micro-optimization

6 years agoRemove unused variables
Gabriel Caruso [Thu, 15 Nov 2018 14:32:00 +0000 (12:32 -0200)]
Remove unused variables

6 years agoRemove missing SKIPIF sections for mbstring tests
Gabriel Caruso [Thu, 15 Nov 2018 14:21:55 +0000 (12:21 -0200)]
Remove missing SKIPIF sections for mbstring tests

6 years agoSplit zend_objects_store_put() into hot/cold parts
Dmitry Stogov [Thu, 15 Nov 2018 13:31:22 +0000 (16:31 +0300)]
Split zend_objects_store_put() into hot/cold parts

6 years ago[ci skip] Update UPGRADING
Peter Kokot [Thu, 15 Nov 2018 09:46:48 +0000 (10:46 +0100)]
[ci skip] Update UPGRADING

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Wed, 14 Nov 2018 21:35:47 +0000 (22:35 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Rework magic data once more

6 years agoRework magic data once more
Anatol Belski [Wed, 14 Nov 2018 21:23:24 +0000 (22:23 +0100)]
Rework magic data once more

The change reduces the input size on patterns using posix character
classes. It is still better than reverting to the patterns from the
older version, as the upstream data uses posix classes also in the later
versions. The input reduction speeds up the pattern matching in some
cases.

This patch is functionally almost same as upstream, but might show some diff
when the input is very long. While the magic data in the newer versions is
functionally an improvement, with jit=0 it might show a performance regression.
The slowdown is negligible in the normal usage and is still acceptable for the
malicious input. If some functional regressions show up, this patch should be
reverted and the tests timing should be adapted instead.

6 years agotypo
Dmitry Stogov [Wed, 14 Nov 2018 21:10:17 +0000 (00:10 +0300)]
typo

6 years ago[ci skip] Update NEWS
Peter Kokot [Wed, 14 Nov 2018 20:45:24 +0000 (21:45 +0100)]
[ci skip] Update NEWS

6 years agoAdd openssl_x509_verify() function
Ben Scholzen (DASPRiD) [Sat, 20 Oct 2018 00:19:09 +0000 (02:19 +0200)]
Add openssl_x509_verify() function

This patch introduces a wrapper around OpenSSL's X509_verify() function.

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Wed, 14 Nov 2018 13:59:56 +0000 (14:59 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix #77147: Fix for 60494 ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Wed, 14 Nov 2018 13:58:45 +0000 (14:58 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77147: Fix for 60494 ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Christoph M. Becker [Wed, 14 Nov 2018 13:56:41 +0000 (14:56 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix #77147: Fix for 60494 ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR

6 years agoFix #77147: Fix for 60494 ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR
Christoph M. Becker [Wed, 14 Nov 2018 13:55:38 +0000 (14:55 +0100)]
Fix #77147: Fix for 60494 ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR

If the `ICONV_MIME_DECODE_CONTINUE_ON_ERROR` flag is set, parsing
should not fail, if there are illegal characters in the headers;
instead we silently ignore these like before.

6 years agoImplemented preloading RFC: https://wiki.php.net/rfc/preload.
Dmitry Stogov [Wed, 14 Nov 2018 13:46:05 +0000 (16:46 +0300)]
Implemented preloading RFC: https://wiki.php.net/rfc/preload.

Squashed commit of the following:

commit 106c815fffb8eb3efe00a27a5229cb1f8ffc9736
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Nov 14 16:36:44 2018 +0300

    Added NEWS entry

commit 1dacd5e20b7043368ef9e80db296d1781134b6fd
Merge: d516139abf ba99aa133c
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Nov 14 16:33:37 2018 +0300

    Merge branch 'master' into preload

    * master:
      Fixed issues related to optimization and persitence of classes linked with interfaces, traits or internal classes.
      Added possiblity to avoid signal handlers reinitialization on each request.

commit d516139abf5ffbd495ee6037f1dc04a1cfe588a7
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Nov 14 16:13:15 2018 +0300

    Override opcache.preload for testing

commit 162b154d0bbfbaf8ef93975f7e56a1353236903d
Merge: 45fdd034ce 8bda22592e
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Nov 14 15:38:09 2018 +0300

    Merge branch 'master' into preload

    * master: (34 commits)
      Eliminate useless $this related check
      Eliminate useless $this related checks
      Replace zend_parse_method_parameters() by zend_parse_parameters() and avoid useless checks.
      Replace getThis() by EX(This), when additional check is not necessary.
      Fixed tests
      Validate length on socket_write
      Fix compilation on x32
      Fix #77141: Signedness issue in SOAP when precision=-1
      Support SQLite3 @name notation
      Remove lexer files generated by RE2C
      Update libmagic.patch [ci skip]
      Update libmagic.patch [ci skip]
      Fork test with pcre.jit=0
      Rework magic data
      Fix regex
      Fix regex
      Rework magic data
      Sync one more upstream libmagic piece
      Suppress already used warning
      Ignore getaddrinfo failed message
      ...

commit 45fdd034ceceb68e8fb23bd6e70d627f17dfd411
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Fri Nov 9 13:07:03 2018 +0300

    Properly resolve magic method of preloaded classes inherited from internal ones.

commit 34645aeb4272b71a81a7e0d91f27eded557b78be
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Thu Nov 8 15:29:17 2018 +0300

    Don't preload constants defined during preload script excution.

commit cef0d67c3e5aac89b3d606fbd8d445225c07c83f
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Nov 7 15:56:54 2018 +0300

    Support for class aliasses

commit 08ffc9a552c7cf4fbff1a4b3d2de4e7c33f4120d
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Nov 7 15:34:39 2018 +0300

    Resolve constants only in linked classes

commit 8d3429cda83c87646eef0006d5cda075f2400b24
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Tue Nov 6 11:56:39 2018 +0300

    Fixed preloading of references to internal classes.

commit 7ae3a47d20e83f7d804506c6d50f6a392199260b
Merge: 9b0a53ed1c 049f239cfc
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Tue Nov 6 11:37:15 2018 +0300

    Merge branch 'master' into preload

    * master:
      Update NEWS [ci skip]
      Update NEWS [ci skip]
      Update libmagic.patch [ci skip]
      Update libmagic.patch [ci skip]
      Declare function proto in header
      Declare function proto in header
      Fix #76825: Undefined symbols ___cpuid_count
      NEWS
      Fix: #77110 undefined symbol zend_string_equal_val in C++ build
      Fix #77105: Use position:sticky for <th> in `phpinfo()`
      Implement handling for JIT recognition when cross compiling
      Backport 7f5f4601 for 7.2
      Fix #76348: WSDL_CACHE_MEMORY causes Segmentation fault
      Rework places in libmagic regarding previous CVE-2014-3538 fixes
      Change the way JIT availability is checked
      Fix a test for ldap extension
      Fixed bug #77092
      Future-proof email addresses

commit 9b0a53ed1cd5995efae0d71e1941d1db4ef6ba39
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Fri Nov 2 14:54:44 2018 +0300

    We don't need preload_restart() here

commit 0bd17bd43890423e1e98a5925f11cea93da3df55
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Fri Nov 2 14:44:30 2018 +0300

    EG(*) may be not initializd at this point - use CG(*).

commit b610467051d8a3687a60ffc2957bc353cb6b3bd4
Merge: 3a9d90f74a 67e0138c0d
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Fri Nov 2 11:33:37 2018 +0300

    Merge branch 'master' into preload

    * master:
      Future-proof email addresses...
      Update email addresses.  We're still @Zend, but future proofing it...

commit 3a9d90f74a3d890cb59658d604d5a202e3aee256
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Thu Nov 1 15:19:48 2018 +0300

    Fexed resolution of method clones

commit aea85c65bd1795d0750dee6ac0e476acd2ac9dd7
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Thu Nov 1 11:45:50 2018 +0300

    Prevent inlining of method copied from trait

commit 36b644fbb738e7548ccb436e5d04d653d93cce14
Merge: 7a20781d2e b91690c892
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Thu Nov 1 10:56:02 2018 +0300

    Merge branch 'master' into preload

    * master:
      Fix stray newline that caused this test to fail
      Fix session tests that fail if error_log is set
      This test needs to log to stdout
      Fix error condition
      Fixed bug #77081 ftruncate() changes seek pointer in c mode
      Fix and improve test case

commit 7a20781d2ee694262f913a612d8b0b6a24ceff7b
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 31 00:52:46 2018 +0300

    Added test

commit 4a57b5d563f9c9616f3c236f57ccd09d8a66f146
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 31 00:50:21 2018 +0300

    Fixed preloading of classes linked with traits

commit 68c4f99e23695e74eafa43097ecab62392bad3ee
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Tue Oct 30 16:25:14 2018 +0300

    Added test

commit 38ab7ef4cf429dcfd5dfb18f844242cdf3a4d61f
Merge: eb6e2c529f bf38e6c10a
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Tue Oct 30 16:14:39 2018 +0300

    Merge branch 'master' into preload

    * master:
      Keep original value of "prototype"

commit eb6e2c529f8cedf6823346387dd8b0ba6a4f045b
Merge: 562049510f 2fefa8c61e
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Tue Oct 30 15:35:39 2018 +0300

    Merge branch 'master' into preload

    * master:
      Call function_add_ref() in proper place
      Updated to version 2018.7 (2018g)
      Updated to version 2018.7 (2018g)
      Updated to version 2018.7 (2018g)
      Reslove inherited op_array references once afrer all optimizations.

commit 562049510f605c21cd46fc3b6f97ed15bfe7b0dc
Merge: e806cb732a 4828fb7b6b
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Tue Oct 30 10:29:49 2018 +0300

    Merge branch 'master' into preload

    * master:
      [ci skip] Update NEWS
      [ci skip] Update NEWS
      [ci skip] Update NEWS
      fix bug #77079
      Add missing null initialization
      Remove redundant mbfl_string_init calls
      Use zend_string for mbstring last encoding cache

commit e806cb732a2a3f1e409528988a0571421c541078
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Mon Oct 29 22:32:15 2018 +0300

    Fixed double-free

commit 2f697ef8af0e7b21c47707b2d688880e8c987a8b
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Mon Oct 29 22:07:32 2018 +0300

    typo

commit c559f22b3e61b38761831d9610889d28ba6875e0
Merge: 310631cc05 ea2e67876a
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Mon Oct 29 21:59:27 2018 +0300

    Merge branch 'master' into preload

    * master:
      Stop Apache if PHP wasn't started successful.
      Execute zend_post_startup() with module_initialized flag set.
      Removed dead code
      Fix mb_strrpos() with encoding passed as 3rd param

commit 310631cc0565ac87091c4f1a8a9f739a13e7e778
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Mon Oct 29 16:48:42 2018 +0300

    Stop Apache if PHP wasn't started successful.

commit 0a24d7ba8f3280507c9663b32e14030212cf8491
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Mon Oct 29 16:25:49 2018 +0300

    Avoid use-after-free in main thread

commit 17a3cb4a2ab271c2b2357c04e36efa64e02444ff
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Mon Oct 29 15:25:17 2018 +0300

    Execute zend_post_startup() with module_initialized flag set.

commit 6d4b22c518bec956e9632fad4329360304d17fd7
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Mon Oct 29 14:12:20 2018 +0300

    Override SAPI.ub_write and SAPI.flush for preloading

commit 386c9d3470168f70afe5d3b72a58ea0c0da1519c
Merge: d7fbb4d402 359f19edc9
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Mon Oct 29 13:49:24 2018 +0300

    Merge branch 'master' into preload

    * master:
      Optimize substr() edge-case conditions
      [ci skip] Update UPGRADING
      Fix #71592: External entity processing never fails
      Add TIDY_TAG_* constants supported by libtidy 5
      Add is_iterable to opcache Optimizer

commit d7fbb4d402a18c8fd1c49e0c92afd9f9e513bc7a
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Fri Oct 26 13:11:54 2018 +0300

    Restore preload state if it was already loaded in another process.

commit 0fe9ea1c07822b5d4672cece2c180bf9795e16e4
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Fri Oct 26 12:29:06 2018 +0300

    Removed dead code

commit 3a2d1bcc1fd27b6983522c262931fc0187c0afef
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Fri Oct 26 00:19:40 2018 +0300

    Support for builds without ZEND_SIGNALS

commit e6b76ecb4beea3b922bf7529050e3828f745dedb
Merge: 4531fbf931 68694c9997
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Thu Oct 25 23:43:25 2018 +0300

    Merge branch 'master' into preload

    * master:
      Don't wrap php_module_shutdown() with zend_try. executor_globals are released in ZTS build, and this leads to crash.
      [ci skip] Fix indentation in UPGRADING.

commit 4531fbf9310bfb7bb579134cc84e8c10c5d42059
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Thu Oct 25 22:44:49 2018 +0300

    Disable linking and preloading of classes those parent or one of interface or trait is an internal class.

commit a594a618ce98242c1d273eb9ede75b4f6b4635d8
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Thu Oct 25 22:30:51 2018 +0300

    Cleanup

    - remove useless ZCSG(saved_map_ptr_last)
    - move preloaded classes/functions clean-up code back into better place

commit ab9a40f63cfa1a205b8f853b7e0c2ce61edabb32
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Thu Oct 25 20:52:51 2018 +0300

    Added support for preloaded classes/functions in ZTS build

commit e3c65db099517082b66dd20ea57e1bda649a7aa5
Merge: 4f57c1e029 33e777acbf
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Thu Oct 25 20:52:26 2018 +0300

    Merge branch 'master' into preload

    * master:
      Improved shared interned strings handling. The previous implementation worked incorrectly in ZTS build. It changed strings only in function/class tables of one thread. Now all threads gets the same shared interned strings. Also, on shutdown, we don't try to replace SHM interned strings back to process strings, but delay dettachment of SHM instead.
      Don't use request heap at shutdown
      Don't optimize function if inference failed
      Fixed bug #77058
      Improve "narrowing" error message
      bump versions

commit 4f57c1e029ce9c24bd699ea61b05973c4665bc32
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Thu Oct 25 15:29:58 2018 +0300

    Cleanup (move preload_shutdown() call to better place)

commit 26587a95c071cf9dd098199eb3708fca8adae243
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Thu Oct 25 14:30:51 2018 +0300

    eol

commit d70cb10480fdc7d814495150cd48e43d4147138f
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Thu Oct 25 14:30:20 2018 +0300

    cleanup

commit aabe685dbb887e91c240b6c5553193889bcfc540
Merge: d9fc51bc3b 40808ac41e
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Thu Oct 25 12:42:51 2018 +0300

    Merge branch 'master' into preload

    * master:
      Remove unused var
      Remove ext/json parser files generated by bison
      Fix run-tests.php for running phpdbg and certain test sections
      Normalize .gitignore

commit d9fc51bc3bdfbd7f4149a884b09e3c09a41f7a8d
Merge: b5ffba0faf b6ef8998d5
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 24 15:59:24 2018 +0300

    Merge branch 'master' into preload

    * master:
      Fixed reseting of interned strings buffer.

commit b5ffba0fafb4d940336d5f5fe93950dad1d8d779
Merge: e4a7ef0c43 a404383118
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 24 12:46:28 2018 +0300

    Merge branch 'master' into preload

    * master:
      Fixed build in directory different from source

commit e4a7ef0c431ec97cdd00e44dfa0ef17887d1e5e3
Merge: 811f20aaa5 d1e14e2cc0
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 24 11:59:43 2018 +0300

    Merge branch 'master' into preload

    * master: (29 commits)
      Make php_plain_files_wrapper to be writable (workaround for swoole)
      Remove phpdbg parser files generated by bison
      Fix conflicts in phpdbg parser
      Refetetch function name on exceptional path to allow better code on fast code path.
      fix typo in sysvsem.c
      Fixed bug #50675
      bump to 7.2.13-dev
      [ci skip] Update NEWS wrt. php-7.3.0RC4 tagging
      Inlining in the most frequently used code paths
      Fixed test failurs introduced by 9c144e0d8217d1ef7a83c2498214308b21af749f
      Use persistent strings only for persistent connections
      Fix accessibility checks for dynamic properties
      Updated to version 2018.6 (2018f)
      Updated to version 2018.6 (2018f)
      Updated to version 2018.6 (2018f)
      Fix arginfo and clean up fpm_get_status
      Defragment two Zend related Makefile fragments together
      [ci skip] Remove automake and aclocal in comments
      Fix #75282: xmlrpc_encode_request() crashes
      Fix tests for ICU 63.1
      ...

commit 811f20aaa5030035666d9f325dd7c64632c70a50
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Mon Oct 22 14:10:49 2018 +0300

    Added information about preloading to opcache_get_status()

commit 093e8b1bbffdc07d217a543613ea14c3eeac710e
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Fri Oct 19 13:46:23 2018 +0300

    Added warning message

commit a2ba970ce3d0ac51ebfbe1bfc2dc7b99b9750a75
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Fri Oct 19 13:35:40 2018 +0300

    Added test

commit b67e28367c11db50360e664a7ad6ac95b393f2e4
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Fri Oct 19 13:33:12 2018 +0300

    Don't preload functions declared at run-time.

commit b0139dc22854ee000586ef83c149d7d25181da60
Merge: a609520adb 3fe698b904
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Fri Oct 19 13:23:14 2018 +0300

    Merge branch 'master' into preload

    * master:
      Mark "top-level" functions.
      Don't initialize static_member_tables during start-up, when inherit internal classes.
      [ci skip] Update NEWS
      [ci skip] Update NEWS
      [ci skip] Update NEWS
      Fix #77035: The phpize and ./configure create redundant .deps file
      Remove outdated PEAR artefacts
      Fix tests/output/bug74815.phpt generating errors.log
      Revert "Use C++ symbols, when C++11 or upper is compiled"
      Use C++ symbols, when C++11 or upper is compiled
      Added new line
      Remove stamp-h
      Move all testing docs to qa.php.net
      Fix a typo in UPGRADING.INTERNALS
      Fix test when it's run on another drive
      [ci skip] Update UPGRADING wrt. tidyp support
      Fixed incorrect reallocation
      Fix #77027: tidy::getOptDoc() not available on Windows
      Run CI tests under opcache.protect_memory=1

commit a609520adbc0bf12701d467bae4a016fde43231e
Merge: ac8f45f61b b6ac50f9e6
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 17:01:05 2018 +0300

    Merge branch 'master' into preload

    * master:
      Fixed comment
      Micro optimizations
      Mark "top-level" classes

commit ac8f45f61b561af9aee629232bc3705143ceaac3
Merge: 632b30b545 d57cd36e47
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 15:53:41 2018 +0300

    Merge branch 'master' into preload

    * master:
      Immutable clases and op_arrays.

commit 632b30b5451c8fdf0879a3ba4d937ff4ecfc8ce7
Merge: d33908a99a cd0c36c3f9
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 15:04:43 2018 +0300

    Merge branch 'immutable' into preload

    * immutable:
      Remove the "auto" encoding
      Fixed bug #77025
      Add vtbls for EUC-TW encoding

commit cd0c36c3f943849e5b97a8dbe2dd029fbeab3df9
Merge: 4740dabb84 ad6738e886
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 14:43:38 2018 +0300

    Merge branch 'master' into immutable

    * master:
      Remove the "auto" encoding
      Fixed bug #77025
      Add vtbls for EUC-TW encoding

commit d33908a99a3c746f188e268df3db541591f6fcc2
Merge: 21e0bebca3 4740dabb84
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 14:14:23 2018 +0300

    Merge branch 'immutable' into preload

    * immutable:
      Reverted back ce->iterator_funcs_ptr. Initialize ce->iterator_funcs_ptr fields in immutable classes.

commit 4740dabb843c6d4f7f866b4a2456073c9eaf4c77
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 14:12:28 2018 +0300

    Reverted back ce->iterator_funcs_ptr. Initialize ce->iterator_funcs_ptr fields in immutable classes.

commit 21e0bebca3e6fff3c3484ee46f9aa3ac4e98eaeb
Merge: c78277ae84 ad7a78b253
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 12:29:59 2018 +0300

    Merge branch 'immutable' into preload

    * immutable:
      Added comment
      Added type cast
      Moved static class members initialization into the proper place.
      Removed redundand assertion
      Removed duplicate code
      Hide offset encoding magic in ZEND_MAP_PTR_IS_OFFSET(), ZEND_MAP_PTR_OFFSET2PTR() and ZEND_MAP_PTR_PTR2OFFSET() macros.
      typo
      Remove unused variable makefile_am_files
      Classify object handlers are required/optional
      Add support for getting SKIP_TAGSTART and SKIP_WHITE options
      Remove some obsolete config_vars.mk occurrences
      Remove bsd_converted from .gitignore
      Remove configuration parser and scanners ignores
      Remove obsolete buildconf.stamp from .gitignore
      [ci skip] Add magicdata.patch exception to .gitignore
      Remove outdated ext/spl/examples items from .gitignore
      Remove unused test.inc in ext/iconv/tests

commit ad7a78b253be970db70c2251e66f9297d8e7f829
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 11:46:30 2018 +0300

    Added comment

commit 0276ea51875bab37be01a4dc5e5a047c5698c571
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 11:42:43 2018 +0300

    Added type cast

commit c63fc5d5f19c58498108d1698055b2b442227eb3
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 11:36:51 2018 +0300

    Moved static class members initialization into the proper place.

commit b945548e9306b1826c881918858b5e5aa3eb3002
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 11:21:03 2018 +0300

    Removed redundand assertion

commit d5a41088401814c829847db212488f8aae39bcd2
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 11:19:13 2018 +0300

    Removed duplicate code

commit 8dadca8864e66de70a24bdf1181bcf7dd8fb27d7
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 11:05:43 2018 +0300

    Hide offset encoding magic in ZEND_MAP_PTR_IS_OFFSET(), ZEND_MAP_PTR_OFFSET2PTR() and ZEND_MAP_PTR_PTR2OFFSET() macros.

commit 9ef07c88bd76801e2d4fbfeab3ebfd6e6a67ac5f
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 10:48:29 2018 +0300

    typo

commit a06f0f3d3aba53e766046221ee44fb9720389ecc
Merge: 94099586ec 3412345ffe
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 10:47:07 2018 +0300

    Merge branch 'master' into immutable

    * master:
      Remove unused variable makefile_am_files
      Classify object handlers are required/optional
      Add support for getting SKIP_TAGSTART and SKIP_WHITE options
      Remove some obsolete config_vars.mk occurrences
      Remove bsd_converted from .gitignore
      Remove configuration parser and scanners ignores
      Remove obsolete buildconf.stamp from .gitignore
      [ci skip] Add magicdata.patch exception to .gitignore
      Remove outdated ext/spl/examples items from .gitignore
      Remove unused test.inc in ext/iconv/tests

commit c78277ae84b21067744d1701949e4e1fadd8872a
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Tue Oct 16 17:25:35 2018 +0300

    Preloadsing support for opcache restart

commit f76a955c02f6a033d4656d5e0d9dad9a8e83cc86
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Tue Oct 16 13:52:36 2018 +0300

    Fixed incorrect signal handlers overriding

commit 0810ce0d8165d4b752267f035f9fa0aaa1698ceb
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Mon Oct 15 23:38:48 2018 +0300

    An attempt to implemnt "preloading" ability.

commit 94099586ec599117581ca01c15b1f6c5f749e23a
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Mon Oct 15 23:34:01 2018 +0300

    Immutable clases and op_arrays

6 years agoFixed issues related to optimization and persitence of classes linked with interfaces...
Dmitry Stogov [Wed, 14 Nov 2018 13:32:07 +0000 (16:32 +0300)]
Fixed issues related to optimization and persitence of classes linked with interfaces, traits or internal classes.

6 years agoAdded possiblity to avoid signal handlers reinitialization on each request.
Dmitry Stogov [Wed, 14 Nov 2018 13:26:14 +0000 (16:26 +0300)]
Added possiblity to avoid signal handlers reinitialization on each request.

6 years agoEliminate useless $this related check
Dmitry Stogov [Wed, 14 Nov 2018 08:33:14 +0000 (11:33 +0300)]
Eliminate useless $this related check

6 years agoEliminate useless $this related checks
Dmitry Stogov [Wed, 14 Nov 2018 00:46:42 +0000 (03:46 +0300)]
Eliminate useless $this related checks

6 years agoReplace zend_parse_method_parameters() by zend_parse_parameters() and avoid useless...
Dmitry Stogov [Wed, 14 Nov 2018 00:32:19 +0000 (03:32 +0300)]
Replace zend_parse_method_parameters() by zend_parse_parameters() and avoid useless checks.

6 years agoReplace getThis() by EX(This), when additional check is not necessary.
Dmitry Stogov [Tue, 13 Nov 2018 23:44:25 +0000 (02:44 +0300)]
Replace getThis() by EX(This), when additional check is not necessary.

6 years agoFixed tests
Dmitry Stogov [Tue, 13 Nov 2018 14:00:06 +0000 (17:00 +0300)]
Fixed tests

6 years agoMerge branch 'PHP-7.3'
Joe Watkins [Tue, 13 Nov 2018 12:00:31 +0000 (13:00 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Validate length on socket_write

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Joe Watkins [Tue, 13 Nov 2018 11:59:50 +0000 (12:59 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Validate length on socket_write

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Joe Watkins [Tue, 13 Nov 2018 11:57:38 +0000 (12:57 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Validate length on socket_write

6 years agoValidate length on socket_write
Thiago Carvalho [Sun, 21 Oct 2018 19:42:29 +0000 (21:42 +0200)]
Validate length on socket_write

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Tue, 13 Nov 2018 11:31:44 +0000 (12:31 +0100)]
Merge branch 'PHP-7.3'

6 years agoFix compilation on x32
Jan Rękorajski [Wed, 24 Oct 2018 21:02:33 +0000 (23:02 +0200)]
Fix compilation on x32

Signed-off-by: Elan Ruusamäe <glen@pld-linux.org>
6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Mon, 12 Nov 2018 22:25:38 +0000 (23:25 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix #77141: Signedness issue in SOAP when precision=-1

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Mon, 12 Nov 2018 22:24:17 +0000 (23:24 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77141: Signedness issue in SOAP when precision=-1

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Christoph M. Becker [Mon, 12 Nov 2018 22:21:04 +0000 (23:21 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix #77141: Signedness issue in SOAP when precision=-1

6 years agoFix #77141: Signedness issue in SOAP when precision=-1
Christoph M. Becker [Mon, 12 Nov 2018 22:00:25 +0000 (23:00 +0100)]
Fix #77141: Signedness issue in SOAP when precision=-1

According to php_gcvt(), we assume at most 17 fractional digits for
negative precision.

6 years agoSupport SQLite3 @name notation
Christoph M. Becker [Sun, 11 Nov 2018 13:55:34 +0000 (14:55 +0100)]
Support SQLite3 @name notation

Besides the common `:param` notation to designate named parameters in
prepared statements, SQLite3 also supports `@param` and `$param`.
While the latter is mostly to support the Tcl programming language, and
would be confusing for PHP's sqlite3 binding due to the similarity with
string interpolation, the former is common under .NET and raises no
such issue.  Therefore we add support for it.

This patch has been developed in cooperation with @BohwaZ.

6 years agoRemove lexer files generated by RE2C
Peter Kokot [Sat, 10 Nov 2018 01:47:26 +0000 (02:47 +0100)]
Remove lexer files generated by RE2C

This patch removes generated lexer files by re2c during the build
process so they are not tracked by Git yet can be still shipped when
PHP is released. The genfiles script additionally provides generation
of these lexer files when creating a release of the PHP source code.

The genfiles script refactorings:
- added file header
- echoing steps instead of comments
- cleaning only lines starting with `#line`
- eval removed in favor of direct executed commands
- the debug mode `set -x` removed
- script can be called from any path
- improved comments

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Sat, 10 Nov 2018 21:03:07 +0000 (22:03 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Update libmagic.patch [ci skip]
  Update libmagic.patch [ci skip]

6 years agoUpdate libmagic.patch [ci skip]
Anatol Belski [Sat, 10 Nov 2018 21:02:44 +0000 (22:02 +0100)]
Update libmagic.patch [ci skip]

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Sat, 10 Nov 2018 21:02:24 +0000 (22:02 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Update libmagic.patch [ci skip]

6 years agoUpdate libmagic.patch [ci skip]
Anatol Belski [Sat, 10 Nov 2018 21:01:49 +0000 (22:01 +0100)]
Update libmagic.patch [ci skip]

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Sat, 10 Nov 2018 19:07:52 +0000 (20:07 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fork test with pcre.jit=0

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Sat, 10 Nov 2018 19:07:25 +0000 (20:07 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fork test with pcre.jit=0

6 years agoFork test with pcre.jit=0
Anatol Belski [Sat, 10 Nov 2018 19:05:56 +0000 (20:05 +0100)]
Fork test with pcre.jit=0

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Sat, 10 Nov 2018 17:26:04 +0000 (18:26 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Rework magic data

6 years agoRework magic data
Anatol Belski [Sat, 10 Nov 2018 17:22:44 +0000 (18:22 +0100)]
Rework magic data

Still upstream contains some slower patterns. Those might need to
be patched, if regressions arise.

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Sat, 10 Nov 2018 11:13:29 +0000 (12:13 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix regex
  Fix regex

6 years agoFix regex
Anatol Belski [Sat, 10 Nov 2018 11:13:03 +0000 (12:13 +0100)]
Fix regex

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Sat, 10 Nov 2018 11:12:25 +0000 (12:12 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix regex

6 years agoFix regex
Anatol Belski [Sat, 10 Nov 2018 11:11:02 +0000 (12:11 +0100)]
Fix regex

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Sat, 10 Nov 2018 00:32:52 +0000 (01:32 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Rework magic data

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Sat, 10 Nov 2018 00:32:35 +0000 (01:32 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Rework magic data

6 years agoRework magic data
Anatol Belski [Sat, 10 Nov 2018 00:28:23 +0000 (01:28 +0100)]
Rework magic data

Avoid patching where vanilla data suffices. More precisely, avoid data
using [:space:] posix class in regex, as it is likely to cause performance
regressions.

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Fri, 9 Nov 2018 23:20:56 +0000 (00:20 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Sync one more upstream libmagic piece

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Fri, 9 Nov 2018 23:20:39 +0000 (00:20 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Sync one more upstream libmagic piece

6 years agoSync one more upstream libmagic piece
Anatol Belski [Fri, 9 Nov 2018 23:18:30 +0000 (00:18 +0100)]
Sync one more upstream libmagic piece

6 years agoSuppress already used warning
Mizunashi Mana [Fri, 9 Nov 2018 06:53:15 +0000 (15:53 +0900)]
Suppress already used warning

6 years agoIgnore getaddrinfo failed message
Mizunashi Mana [Thu, 8 Nov 2018 17:44:54 +0000 (02:44 +0900)]
Ignore getaddrinfo failed message

6 years agoClean testfile
Mizunashi Mana [Thu, 8 Nov 2018 09:51:17 +0000 (18:51 +0900)]
Clean testfile

6 years agoSkip SQLite3::loadExtension tests if SQLITE_OMIT_LOAD_EXTENSION defined
Mizunashi Mana [Thu, 8 Nov 2018 11:47:11 +0000 (12:47 +0100)]
Skip SQLite3::loadExtension tests if SQLITE_OMIT_LOAD_EXTENSION defined

6 years agoUse new option name in travis/compile.sh
Nikita Popov [Wed, 7 Nov 2018 19:22:41 +0000 (20:22 +0100)]
Use new option name in travis/compile.sh

6 years agoAdd putenv for setlocale for gettext tests
Mizunashi Mana [Sun, 28 Oct 2018 19:33:53 +0000 (04:33 +0900)]
Add putenv for setlocale for gettext tests

6 years agoRemove do_bind_inherited_class; use do_bind_class
Levi Morrison [Wed, 7 Nov 2018 01:39:22 +0000 (18:39 -0700)]
Remove do_bind_inherited_class; use do_bind_class

Pass NULL as the second parameter. I don't know if in the past these
differed more, but there isn't any point to having both of them
anymore.

6 years agoAvoid needless string duplication
Christoph M. Becker [Wed, 7 Nov 2018 15:37:00 +0000 (16:37 +0100)]
Avoid needless string duplication

Cf. <https://github.com/php/php-src/pull/3636#issuecomment-436638833>.

6 years agoext/gd: Use pkg-config to detect the availability of freetype2
Eli Schwartz [Mon, 14 May 2018 21:25:37 +0000 (17:25 -0400)]
ext/gd: Use pkg-config to detect the availability of freetype2

The latest version of freetype2 does not install freetype-config by
default, but pkg-config support has been there for approximately 15
years. In order to reliably detect freetype2, pkg-config *must* be used.

See:
https://savannah.nongnu.org/bugs/?53093
https://bugs.php.net/bug.php?id=76324

6 years agoAvoid double copying
Dmitry Stogov [Wed, 7 Nov 2018 11:23:34 +0000 (14:23 +0300)]
Avoid double copying

6 years agoFixed crash introduced by bfaf662ac2e58c16208224f32cb8387a35b3da97
Dmitry Stogov [Wed, 7 Nov 2018 06:36:21 +0000 (09:36 +0300)]
Fixed crash introduced by bfaf662ac2e58c16208224f32cb8387a35b3da97

6 years ago*printf() optimization and v*printf() warning message fix.
Dmitry Stogov [Tue, 6 Nov 2018 23:40:15 +0000 (02:40 +0300)]
*printf() optimization and v*printf() warning message fix.

6 years agoRemoved dead checks
Dmitry Stogov [Tue, 6 Nov 2018 20:11:28 +0000 (23:11 +0300)]
Removed dead checks

6 years agoReorder conditions and set expectation.
Dmitry Stogov [Tue, 6 Nov 2018 19:37:04 +0000 (22:37 +0300)]
Reorder conditions and set expectation.

6 years agoMicro-optimization
Dmitry Stogov [Tue, 6 Nov 2018 14:04:17 +0000 (17:04 +0300)]
Micro-optimization