]> granicus.if.org Git - php/log
php
4 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Thu, 23 Apr 2020 15:39:47 +0000 (17:39 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Add additional preg_match test case

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Thu, 23 Apr 2020 15:36:04 +0000 (17:36 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Add additional preg_match test case

4 years agoAdd additional preg_match test case
Graham Campbell [Tue, 7 Apr 2020 13:41:06 +0000 (15:41 +0200)]
Add additional preg_match test case

(cherry picked from commit a1a044dcc74379fafb2b63db5ab033aa062aada7
on author's explicit request)

4 years agoMake throw statement an expression
Ilija Tovilo [Wed, 18 Mar 2020 23:51:51 +0000 (00:51 +0100)]
Make throw statement an expression

RFC: https://wiki.php.net/rfc/throw_expression

This has an open issue with temporaries that are live at the time
of the throw being leaked. Landing this now for easier testing and
will revert if we cannot resolve the issue.

Closes GH-5279.

4 years agoFix typo in UPGRADING [ci skip]
Jacob Dreesen [Thu, 23 Apr 2020 09:20:58 +0000 (11:20 +0200)]
Fix typo in UPGRADING [ci skip]

4 years agoFix treatment of "self" when validating against trait method
Nikita Popov [Thu, 23 Apr 2020 09:34:07 +0000 (11:34 +0200)]
Fix treatment of "self" when validating against trait method

If we're validating a class method against a trait method, we need
to treat "self" in the trait method as the class where the method
is used. To achieve this, we need to thread the proto scope through
all methods, so it can be provided separately from proto.common->scope.

4 years agoMore accurate life range termination
Dmitry Stogov [Thu, 23 Apr 2020 08:49:28 +0000 (11:49 +0300)]
More accurate life range termination

4 years agoAdd get_debug_type() function
Your Name [Sun, 2 Feb 2020 21:43:42 +0000 (21:43 +0000)]
Add get_debug_type() function

RFC: https://wiki.php.net/rfc/get_debug_type

4 years agoRemove support for libmysqlclient 5.0
Nikita Popov [Wed, 15 Apr 2020 10:04:15 +0000 (12:04 +0200)]
Remove support for libmysqlclient 5.0

Closes GH-5391.

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 23 Apr 2020 08:31:07 +0000 (10:31 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix bug #79447

4 years agoFix bug #79447
Nicolas Grekas [Wed, 15 Apr 2020 22:11:38 +0000 (00:11 +0200)]
Fix bug #79447

Partially reverts 846b6479537a112d1ded725e6484e46462048b35: instead of
throwing, this skips uninitialized typed properties when serializing objects.

This makes serialize with __sleep() behave the same as serialize()
without __sleep().

As in the non-__sleep() case, unserialize(serialize($x)) identity
may not be preserved due to replacement of uninitialized/unset
properties with default values. Fixing this will require changes to
the serialization format.

Closes GH-5396.

4 years agoRemove unneeded prototype for spl_array_get_iterator
Alex Dowad [Wed, 22 Apr 2020 06:38:42 +0000 (08:38 +0200)]
Remove unneeded prototype for spl_array_get_iterator

4 years agoRemove unused 'ce_get_iterator' field from spl_fixedarray_object
Alex Dowad [Tue, 21 Apr 2020 13:20:38 +0000 (15:20 +0200)]
Remove unused 'ce_get_iterator' field from spl_fixedarray_object

4 years agoRemove unused 'ce_get_iterator' field from spl_heap_object
Alex Dowad [Tue, 21 Apr 2020 13:20:01 +0000 (15:20 +0200)]
Remove unused 'ce_get_iterator' field from spl_heap_object

4 years agoDrop unnecessary stdint and inttypes header checks
George Peter Banyard [Wed, 22 Apr 2020 18:18:19 +0000 (20:18 +0200)]
Drop unnecessary stdint and inttypes header checks

These are always available as of C99.

Closes GH-5323

Co-authored-by: "Christoph M. Becker" <cmbecker69@gmx.de>
4 years agoSkip non-existing properties returned by __sleep()
Nicolas Grekas [Sat, 18 Apr 2020 10:22:00 +0000 (12:22 +0200)]
Skip non-existing properties returned by __sleep()

4 years agoTests for the default case of the parameter of xml_parser_get_option() and xml_parser...
Symeon Charalabides [Wed, 22 Apr 2020 13:33:22 +0000 (15:33 +0200)]
Tests for the default case of the parameter of xml_parser_get_option() and xml_parser_set_option(). These cases are, as of now, not being tested.

4 years agoDocument change to ReflectionMethod->isConstructor/isDestructor
Tyson Andre [Tue, 21 Apr 2020 23:19:53 +0000 (19:19 -0400)]
Document change to ReflectionMethod->isConstructor/isDestructor

See https://externals.io/message/109377
This prevented PHPUnit's test doubles from being created for interfaces.

The reason this changed is
https://github.com/php/php-src/pull/3846/files#diff-3a8139128d4026ce0cb0c86beba4e6b9L5549-R5605
(ReflectionMethod::isConstruct checks if the method is the zend_class_entry's
constructor, etc.)

4 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Wed, 22 Apr 2020 13:09:14 +0000 (15:09 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #79503: Memory leak on duplicate metadata

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Wed, 22 Apr 2020 13:08:13 +0000 (15:08 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #79503: Memory leak on duplicate metadata

4 years agoFix #79503: Memory leak on duplicate metadata
Christoph M. Becker [Wed, 22 Apr 2020 12:11:13 +0000 (14:11 +0200)]
Fix #79503: Memory leak on duplicate metadata

Duplicate metadata can only happen if someone tampers with the phar, so
we can and should treat that as error.

4 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Wed, 22 Apr 2020 13:03:26 +0000 (15:03 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Add additional preg_match test case

4 years agoAdd additional preg_match test case
Graham Campbell [Tue, 7 Apr 2020 13:41:06 +0000 (15:41 +0200)]
Add additional preg_match test case

4 years agoReorder conditions
Dmitry Stogov [Wed, 22 Apr 2020 12:56:54 +0000 (15:56 +0300)]
Reorder conditions

4 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Wed, 22 Apr 2020 12:24:57 +0000 (14:24 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Upgrade to PCRE2 10.34

4 years agoUpgrade to PCRE2 10.34
Christoph M. Becker [Mon, 6 Apr 2020 12:21:56 +0000 (14:21 +0200)]
Upgrade to PCRE2 10.34

We backport the slightly modified variant from master.

4 years agoDiagnose missing format specifier at end of string
Nikita Popov [Wed, 22 Apr 2020 10:53:34 +0000 (12:53 +0200)]
Diagnose missing format specifier at end of string

4 years agoFixed register allocation constraints
Dmitry Stogov [Wed, 22 Apr 2020 10:49:54 +0000 (13:49 +0300)]
Fixed register allocation constraints

4 years agoEmit diagnostic on unknown printf specifier
Nikita Popov [Tue, 21 Apr 2020 16:18:21 +0000 (18:18 +0200)]
Emit diagnostic on unknown printf specifier

Removing lots of bogus tests...

Closes GH-5435.

4 years agoRemove some redundant sprintf variation tests
Nikita Popov [Wed, 22 Apr 2020 09:02:55 +0000 (11:02 +0200)]
Remove some redundant sprintf variation tests

Add a single test that feeds different data types into the relevant
format specifiers, and remove tests that test full matrices of
different types with different formats and modifiers. We're just
interested in how the types are going to be interpreted, the behavior
of all the modifiers is going to stay the same.

4 years agoprintf: Unify error case
Nikita Popov [Wed, 22 Apr 2020 08:13:25 +0000 (10:13 +0200)]
printf: Unify error case

There were a couple of places using efree() on result, which works,
but is very fishy. Unify error handling with goto.

4 years agoprintf: Report error if missing padding character
Nikita Popov [Wed, 22 Apr 2020 08:11:58 +0000 (10:11 +0200)]
printf: Report error if missing padding character

4 years agoFix error message in ext/socket
George Peter Banyard [Tue, 21 Apr 2020 22:50:32 +0000 (00:50 +0200)]
Fix error message in ext/socket

4 years agoPromote warnings to Errors in sockets's extension.
George Peter Banyard [Fri, 10 Jan 2020 14:54:08 +0000 (15:54 +0100)]
Promote warnings to Errors in sockets's extension.

4 years agoRemove redundant vfprintf/vsprintf variation tests
Nikita Popov [Tue, 21 Apr 2020 16:24:03 +0000 (18:24 +0200)]
Remove redundant vfprintf/vsprintf variation tests

These duplicate vprintf() variation tests. While it's useful to
test the vfprintf() and vsprintf() variants of the function, the
main formatting machinery is shared between them, and it makes
little sense to repeat the full set of format tests for all of
them.

4 years agoFix number of required parameters in printf
Nikita Popov [Tue, 21 Apr 2020 15:00:12 +0000 (17:00 +0200)]
Fix number of required parameters in printf

If n$ references are involved, the maximum argnum referenced may
not the one at the end. Store it explicitly.

4 years agoReuse registers allocated for parent trace in side traces
Dmitry Stogov [Tue, 21 Apr 2020 14:34:31 +0000 (17:34 +0300)]
Reuse registers allocated for parent trace in side traces

4 years agoRegister allocation is useless if JIT just calls standarad VM handlers
Dmitry Stogov [Tue, 21 Apr 2020 11:56:56 +0000 (14:56 +0300)]
Register allocation is useless if JIT just calls standarad VM handlers

4 years agoGenerate zend_builtin_functions FEs from stubs
Nikita Popov [Tue, 21 Apr 2020 10:23:21 +0000 (12:23 +0200)]
Generate zend_builtin_functions FEs from stubs

4 years agoRemoved old TODO
Dmitry Stogov [Tue, 21 Apr 2020 09:07:36 +0000 (12:07 +0300)]
Removed old TODO

4 years agoAdd crude memory limit to tracked alloc
Nikita Popov [Tue, 28 Jan 2020 11:20:00 +0000 (12:20 +0100)]
Add crude memory limit to tracked alloc

Check whether the requested allocation size exceeds limit (rather
than the cumulative size).

This is useful to prevent allocations triggering OOM during fuzzing.

4 years agoMake gen_stub parallelism safe
Nikita Popov [Tue, 21 Apr 2020 08:17:19 +0000 (10:17 +0200)]
Make gen_stub parallelism safe

If PHP-Parser is not yet installed, make sure we don't try to
install it N times in parallel.

4 years agoEnsure hash_update_stream() always returns the same hash when $length = 0
Symeon Charalabides [Mon, 20 Apr 2020 23:44:57 +0000 (01:44 +0200)]
Ensure hash_update_stream() always returns the same hash when $length = 0

4 years agoFix OPcache build
Christoph M. Becker [Mon, 20 Apr 2020 15:39:28 +0000 (17:39 +0200)]
Fix OPcache build

`||` at the beginning of a line has special meaning for the DynAsm
preprocessor.

4 years agoFix #71417: fread() does not report zlib.inflate errors
Christoph M. Becker [Mon, 20 Apr 2020 11:27:35 +0000 (13:27 +0200)]
Fix #71417: fread() does not report zlib.inflate errors

If the zlib.inflate filter fails to decompress the stream, we raise a
notice instead of failing silently.

4 years agoRemove support for EBCDIC
Nikita Popov [Wed, 15 Apr 2020 09:51:06 +0000 (11:51 +0200)]
Remove support for EBCDIC

Closes GH-5390.

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 20 Apr 2020 14:37:19 +0000 (16:37 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Don't rand() in test

4 years agoDon't rand() in test
Nikita Popov [Mon, 20 Apr 2020 14:35:52 +0000 (16:35 +0200)]
Don't rand() in test

Instead use port 0 to get a free port from the OS.

4 years agoRegister allocator and deoptimizer for tracing JIT.
Dmitry Stogov [Mon, 20 Apr 2020 13:02:03 +0000 (16:02 +0300)]
Register allocator and deoptimizer for tracing JIT.

4 years agoFix #71263: fread() does not report bzip2.decompress errors
Christoph M. Becker [Fri, 17 Apr 2020 13:48:20 +0000 (15:48 +0200)]
Fix #71263: fread() does not report bzip2.decompress errors

If the bzip2.decompress filter fails to decompress the stream, we raise
a notice instead of failing silently.

4 years agoImprove a last couple of argument error messages
Máté Kocsis [Thu, 16 Apr 2020 22:09:15 +0000 (00:09 +0200)]
Improve a last couple of argument error messages

Closes GH-5404

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 20 Apr 2020 10:07:59 +0000 (12:07 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix file name clash in touch_variation1.phpt

4 years agoFix file name clash in touch_variation1.phpt
Nikita Popov [Mon, 20 Apr 2020 10:07:46 +0000 (12:07 +0200)]
Fix file name clash in touch_variation1.phpt

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 20 Apr 2020 09:55:56 +0000 (11:55 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix bug #67369 ArrayObject serializatino drops the iterator class

4 years agoFix bug #67369 ArrayObject serializatino drops the iterator class
Alex Dowad [Wed, 15 Apr 2020 13:25:14 +0000 (15:25 +0200)]
Fix bug #67369 ArrayObject serializatino drops the iterator class

When ArrayObject is round-tripped through serialize() and unserialize(),
it forgets any iterator class name which was set using ::setIteratorClass().
Fix that.

4 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Mon, 20 Apr 2020 09:00:01 +0000 (11:00 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #79491: Search for .user.ini extends up to root dir

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 20 Apr 2020 08:58:03 +0000 (10:58 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #79491: Search for .user.ini extends up to root dir

4 years agoFix #79491: Search for .user.ini extends up to root dir
Christoph M. Becker [Sun, 19 Apr 2020 12:22:24 +0000 (14:22 +0200)]
Fix #79491: Search for .user.ini extends up to root dir

The `start` parameter of `php_cgi_ini_activate_user_config` is supposed
to hold the byte offset of the doc root in the given `path`.  However,
the current expression which fixes a potential type incompatibility
will ever only evaluate to zero or one, because it uses the *logical*
and operator (`&&`).  Furthermore we notice that subtracting one from
`doc_root_len` is not necessary, so there is even no need for the
`start` parameter at all.

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 20 Apr 2020 08:48:20 +0000 (10:48 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Apply doc root fix for FPM

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 20 Apr 2020 08:48:05 +0000 (10:48 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Apply doc root fix for FPM

4 years agoApply doc root fix for FPM
Nikita Popov [Mon, 20 Apr 2020 08:46:20 +0000 (10:46 +0200)]
Apply doc root fix for FPM

This is the change from GH-5417 but for FPM. This was stripping the
last character from the doc_root. Given how it is used, this should
be harmless, but let's make it less confusing...

4 years agoFix order of ZPP in ext/sqlite3
Máté Kocsis [Sun, 19 Apr 2020 21:05:02 +0000 (23:05 +0200)]
Fix order of ZPP in ext/sqlite3

4 years agoGenerate function entries from stubs
Máté Kocsis [Sun, 19 Apr 2020 18:05:16 +0000 (20:05 +0200)]
Generate function entries from stubs

Converts ext/pcntl, ext/simplexml, ext/snmp, ext/soap, ext/sqlite3.
Closes GH-5421

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 20 Apr 2020 08:26:45 +0000 (10:26 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #79497: Fix php_openssl_subtract_timeval()

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 20 Apr 2020 08:26:11 +0000 (10:26 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #79497: Fix php_openssl_subtract_timeval()

4 years agoFix #79497: Fix php_openssl_subtract_timeval()
Joe Cai [Sun, 19 Apr 2020 23:03:11 +0000 (09:03 +1000)]
Fix #79497: Fix php_openssl_subtract_timeval()

I stumbled upon this while debugging a strange issue with
stream_socket_client() where it randomly throws out errors when
the connection timeout is set to below 1s. The logic to calculate
time difference in php_openssl_subtract_timeval() is wrong when
a.tv_usec < b.tv_usec, causing connection errors before the timeout
is reached.

4 years agoSpeed up ZEND_SWITCH_STRING/ZEND_SWITCH_LONG for wrong type
Tyson Andre [Sun, 19 Apr 2020 15:53:36 +0000 (11:53 -0400)]
Speed up ZEND_SWITCH_STRING/ZEND_SWITCH_LONG for wrong type

This has the minor benefit of avoiding loading the address of the
jump table when the expression for the switch isn't a string/long.
gcc doesn't seem to optimize that.

The previous function body is the original implementation: ad8652818a5

```
// Before: 0.267s, after: 0.265s
function test_switch($x) {
    for ($i = 0; $i < 10000000; $i++) {
        switch ($x) {
        case 'a':
        case 'b':
            echo "i=$i\n";
        }
    }
}
test_switch(null);
```

Closes GH-5419

4 years agoGenerate function entries from stubs for mysqli
Máté Kocsis [Sun, 19 Apr 2020 16:34:37 +0000 (18:34 +0200)]
Generate function entries from stubs for mysqli
Closes GH-5420

4 years ago[skip ci] Fix typos in jit code comments
Tyson Andre [Sat, 18 Apr 2020 16:12:35 +0000 (12:12 -0400)]
[skip ci] Fix typos in jit code comments

And in Opcache's zend_cfg.h

Closes GH-5414

4 years ago[skip ci] Fix comment in Tidy autoconf file
George Peter Banyard [Sun, 19 Apr 2020 13:53:06 +0000 (15:53 +0200)]
[skip ci] Fix comment in Tidy autoconf file

4 years agoEnhance test failure SH script to allow gdb, valgrind, rr as alternative modes.
Benjamin Eberlei [Wed, 15 Apr 2020 13:58:03 +0000 (15:58 +0200)]
Enhance test failure SH script to allow gdb, valgrind, rr as alternative modes.

4 years agoFix [-Wjump-misses-init] in generated zend_opcode.c
George Peter Banyard [Tue, 14 Apr 2020 21:39:23 +0000 (23:39 +0200)]
Fix [-Wjump-misses-init] in generated zend_opcode.c

4 years agoFix [-Wjump-misses-init] warning in MySQL new driver extension
George Peter Banyard [Wed, 15 Apr 2020 00:20:13 +0000 (02:20 +0200)]
Fix [-Wjump-misses-init] warning in MySQL new driver extension

4 years agoFix [-Wjump-misses-init] in spl_directory.c by adding an inner scope
George Peter Banyard [Tue, 14 Apr 2020 23:28:19 +0000 (01:28 +0200)]
Fix [-Wjump-misses-init] in spl_directory.c by adding an inner scope

4 years agoFix [-Wjump-misses-init] in sockets extension
George Peter Banyard [Tue, 14 Apr 2020 23:26:24 +0000 (01:26 +0200)]
Fix [-Wjump-misses-init] in sockets extension

4 years agoFix [-Wjump-misses-init] in php_mbregex.c by adding an inner scope
George Peter Banyard [Tue, 14 Apr 2020 23:22:10 +0000 (01:22 +0200)]
Fix [-Wjump-misses-init] in php_mbregex.c by adding an inner scope

4 years agoRemove ZEND_ACC_DTOR flag
Nikita Popov [Fri, 17 Apr 2020 13:31:57 +0000 (15:31 +0200)]
Remove ZEND_ACC_DTOR flag

This is only used in reflection, where doing a simple string check
is acceptable.

I'm also dropping the "dtor" printing in the reflection dump.
Dtors are just one of many magic methods, I don't think there's
a point in explicitly highlighting them, when the name is already
unambiguous.

4 years agoEarly return if variadic type check fails
Nikita Popov [Fri, 17 Apr 2020 12:23:31 +0000 (14:23 +0200)]
Early return if variadic type check fails

Don't check all the remaining arguments after one check failed.
I don't think this makes an observable behavior difference,
because we already suppress duplicate exceptions in argument
type error reporting.

4 years agoEnable JIT for AppVeyor CI
Christoph M. Becker [Fri, 17 Apr 2020 12:17:14 +0000 (14:17 +0200)]
Enable JIT for AppVeyor CI

This is not supposed to bring any test performance optimization, but
allows us to test basic JIT functionality on Windows.

4 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Fri, 17 Apr 2020 11:56:18 +0000 (14:56 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  zend_timeout() may access EX(opline)

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Dmitry Stogov [Fri, 17 Apr 2020 11:56:01 +0000 (14:56 +0300)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  zend_timeout() may access EX(opline)

4 years agozend_timeout() may access EX(opline)
Dmitry Stogov [Fri, 17 Apr 2020 11:55:14 +0000 (14:55 +0300)]
zend_timeout() may access EX(opline)

4 years agoFix #79475: [JIT] func_get_args() assertion violation
Christoph M. Becker [Fri, 17 Apr 2020 07:48:15 +0000 (09:48 +0200)]
Fix #79475: [JIT] func_get_args() assertion violation

`func_get_args()` may return `zend_empty_array`, which has refcount 2
to enforce separation.   We have to cater to that during type inference
so that the optimization in the JIT macro `SEPARATE_ARRAY` doesn't
prevent the separation.

4 years agoRevert unintended test change
Máté Kocsis [Thu, 16 Apr 2020 16:56:23 +0000 (18:56 +0200)]
Revert unintended test change

4 years agoAlign magic methods' camelCase with documentation
Gabriel Caruso [Thu, 16 Apr 2020 09:26:54 +0000 (11:26 +0200)]
Align magic methods' camelCase with documentation

Closes GH-5398

4 years agoImprove registers reuse
Dmitry Stogov [Thu, 16 Apr 2020 11:35:51 +0000 (14:35 +0300)]
Improve registers reuse

4 years agoAdd S390X architecture as a Travis job
George Peter Banyard [Sun, 12 Apr 2020 22:13:58 +0000 (00:13 +0200)]
Add S390X architecture as a Travis job

This gives us a way to compile and test a big endian architecture.

Closes GH-5382.

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 16 Apr 2020 10:18:50 +0000 (12:18 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix bug #79336

4 years agoFix bug #79336
Nikita Popov [Thu, 16 Apr 2020 09:52:37 +0000 (11:52 +0200)]
Fix bug #79336

Make reading of floats and doubles host-endian independent.

4 years agoAllow using prototypes when optimizing arg passing
Nikita Popov [Fri, 21 Feb 2020 12:13:36 +0000 (13:13 +0100)]
Allow using prototypes when optimizing arg passing

Closes GH-5193.

4 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Thu, 16 Apr 2020 09:57:54 +0000 (11:57 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Move test to its folder

4 years agoMove test to its folder
Gabriel Caruso [Thu, 16 Apr 2020 09:38:27 +0000 (11:38 +0200)]
Move test to its folder

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 16 Apr 2020 09:23:11 +0000 (11:23 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix MySQL local infile / attr handling on big endian systems

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 16 Apr 2020 09:22:43 +0000 (11:22 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix MySQL local infile / attr handling on big endian systems

4 years agoFix MySQL local infile / attr handling on big endian systems
guirish [Fri, 10 Apr 2020 09:45:40 +0000 (05:45 -0400)]
Fix MySQL local infile / attr handling on big endian systems

Make sure pointer types match what is used by libmysql everywhere.

Closes GH-5380.

4 years agoFix magic method name
Gabriel Caruso [Thu, 16 Apr 2020 08:39:25 +0000 (10:39 +0200)]
Fix magic method name

4 years agoImprove error messages for magic methods by appending method's class
Gabriel Caruso [Wed, 15 Apr 2020 23:39:51 +0000 (01:39 +0200)]
Improve error messages for magic methods by appending method's class

Closes GH-5397.

4 years agoFix Bug #79431 Various compiler warnings on Big endian architecture with GCC 5.4.0
vibhutisawant [Sat, 11 Apr 2020 14:45:03 +0000 (07:45 -0700)]
Fix Bug #79431 Various compiler warnings on Big endian architecture with GCC 5.4.0

Fix [-Werror=maybe-uninitialized] compilation warnings on big endian system

Closes GH-5373

4 years agoRemove OP_RANGE_EX distinction
Nikita Popov [Wed, 15 Apr 2020 10:58:50 +0000 (12:58 +0200)]
Remove OP_RANGE_EX distinction

Only leave OP_RANGE macros, which always have the "EX" behavior.

This was already done for most other macros before, but these
were missed. This helps avoid mistakes by using the wrong macro.

4 years agoUse proper macro
Dmitry Stogov [Wed, 15 Apr 2020 10:09:55 +0000 (13:09 +0300)]
Use proper macro