Nikita Popov
36db71df47
Merge branch 'PHP-7.4'
2019-07-22 12:28:40 +02:00
Nikita Popov
0ba7c3eadf
Deprecate array_key_exists() on objects
2019-07-22 11:39:52 +02:00
Nikita Popov
106f71cc94
Merge branch 'PHP-7.4'
2019-07-10 12:05:24 +02:00
Nikita Popov
c42b7dd6d3
Throw notice on array access on illegal type
...
No notice is thrown for list() accesses, because we did not come
to an agreement regarding patterns like
while ([$key, $value] = yield $it->next()) { ... }
where silent null access may be desirable.
No effort is made to suppress multiple notices in access chains
likes $x[0][0][0], because the technical complexity this causes
does not seem worthwhile.
RFC: https://wiki.php.net/rfc/notice-for-non-valid-array-container
2019-07-10 12:02:14 +02:00
Dmitry Stogov
d7aa152d3f
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #77135 (Extract with EXTR_SKIP should skip $this)
2019-06-07 11:50:30 +03:00
Dmitry Stogov
8fbfd8872a
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed bug #77135 (Extract with EXTR_SKIP should skip $this)
2019-06-07 11:50:19 +03:00
Dmitry Stogov
972223c342
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77135 (Extract with EXTR_SKIP should skip $this)
2019-06-07 11:48:57 +03:00
Dmitry Stogov
83cdb89f8a
Fixed bug #77135 (Extract with EXTR_SKIP should skip $this)
2019-06-07 11:36:39 +03:00
Nikita Popov
7686b0b889
Merge branch 'PHP-7.4'
2019-06-05 14:53:50 +02:00
Nikita Popov
a31f46421d
Allow exceptions in __toString()
...
RFC: https://wiki.php.net/rfc/tostring_exceptions
And convert some object to string conversion related recoverable
fatal errors into Error exceptions.
Improve exception safety of internal code performing string
conversions.
2019-06-05 14:25:07 +02:00
Nikita Popov
321fe88935
Add Z_PARAM_NUMBER and use it for some functions
2019-06-03 10:14:05 +02:00
Nikita Popov
4e391ee3a3
Convert some warnings to TypeErrors in array functions
...
This is manual type and argument number checking code that was not
covered by the zpp move to TypeErrors.
2019-05-31 10:52:06 +02:00
Nikita Popov
0b66563eee
Merge branch 'PHP-7.4'
2019-05-28 11:15:37 +02:00
Dik Takken
77cf3d7b11
Allow array_merge() / array_merge_recursive() without arguments
...
This allows writing
array_merge(...$arrays)
instead of
array_merge([], ...$arrays)
and is in line with similar changes to array_push() and array_unshift()
in PHP 7.3.
Closes GH-4175.
2019-05-28 11:14:15 +02:00
Christoph M. Becker
2e91a90f0b
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Make more tests run on Windows
2019-05-27 10:52:25 +02:00
Gabriel Caruso
4bb6f9ba99
Make more tests run on Windows
2019-05-27 10:51:53 +02:00
Gabriel Caruso
53d1a42c32
Fix test related to 714d9fc358
...
The string value in the test array was removed, as the `chr` function
only accepts an integer
2019-05-19 08:47:53 -03:00
Gabriel Caruso
a437f065b8
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Make chr ZPP failure message consistent with ext/standard
2019-05-18 16:17:06 -03:00
Gabriel Caruso
714d9fc358
Make chr ZPP failure message consistent with ext/standard
2019-05-18 15:59:07 -03:00
Nikita Popov
15c0135d5b
Merge branch 'PHP-7.4'
2019-04-23 11:40:56 +02:00
Nikita Popov
a7a318d3c0
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-23 11:40:43 +02:00
Nikita Popov
cedee4408b
Fixed bug #77931
2019-04-23 11:40:13 +02:00
Nikita Popov
6f82ca8742
Merge branch 'PHP-7.4'
2019-03-25 17:36:38 +01:00
Nikita Popov
0b835e3e24
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-25 17:36:15 +01:00
Nikita Popov
e97577edde
Fixed bug #77793
...
By making sure that we always first increment the refcount of the
new value before we destroy the old one.
2019-03-25 17:33:17 +01:00
Nikita Popov
8971728383
Merge branch 'PHP-7.4'
2019-03-20 12:07:05 +01:00
Nikita Popov
abc457fe1d
Fixed bug #74345
...
Export zend_release_fcall_info_cache(). It is only necessary to
call it if the fcc may not have been used -- if it is passed to
zend_call_function() and friends, then they will take care of
freeing trampolines.
2019-03-20 12:06:42 +01:00
Peter Kokot
6426420f61
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Replace dirname(__FILE__) by __DIR__ in tests
2019-03-15 23:36:47 +01:00
Fabien Villepinte
26dfce7f36
Replace dirname(__FILE__) by __DIR__ in tests
2019-03-15 22:55:30 +01:00
Nikita Popov
852485d8ec
Adjust tests for zpp TypeError change
2019-03-11 11:32:20 +01:00
Nikita Popov
19e4abd7ec
Merge branch 'PHP-7.4'
2019-03-07 15:55:13 +01:00
Nikita Popov
c8e10c6119
More zpp error/variation test removals
2019-03-07 15:54:31 +01:00
Nikita Popov
17fb7241e4
Merge branch 'PHP-7.4'
2019-03-06 13:45:13 +01:00
Nikita Popov
8c62c69265
More zpp error/variation test removals
...
Some of these tests also check non-zpp conditions -- however, there is
always some other test that also checks those error conditions.
2019-03-06 13:40:22 +01:00
Nikita Popov
f198ae1558
Merge branch 'PHP-7.4'
2019-02-28 09:59:19 +01:00
Nikita Popov
5e6846cad7
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-28 09:59:07 +01:00
Nikita Popov
019fd1d9ba
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-28 09:58:47 +01:00
Nikita Popov
9ad9cc71ff
Fixed bug #77669
2019-02-28 09:58:01 +01:00
Nikita Popov
a302d11610
Don't silence fatal errors with @
2019-02-11 16:17:55 +01:00
Guilliam Xavier
b3935ed2af
Fix tests bareword fallback with error suppression
...
(cherry picked from commit aad39879f2 )
(cherry picked from commit 76f8a908bb )
2019-02-11 09:36:03 +01:00
Pedro Magalhães
6732028273
Implement the negative_array_index RFC
2019-02-08 16:08:32 +00:00
Nikita Popov
689521af8e
Remove two more zpp variation tests
...
These are normal zpp arguments in PHP 8. Also not adjusted for
32-bit systems...
2019-02-07 15:38:43 +01:00
Nikita Popov
2f1f34952e
Remove $errcontext argument to error handlers
...
I'm removing the argument entirely here, but we might want to change
this to passing null or and empty array instead, if the impact of
dropping it entirely turns out to be too large.
This was deprecated as part of https://wiki.php.net/rfc/deprecations_php_7_2
as a doc-only deprecation.
2019-02-05 14:12:10 +01:00
Nikita Popov
d750f0a192
Merge branch 'PHP-7.4'
2019-02-05 09:41:08 +01:00
Nikita Popov
8bc663f43b
Remove zpp variation tests
2019-02-05 09:38:55 +01:00
Nikita Popov
0476d55827
Make array_slice $length param a nullable integer
...
Instead of having custom parameter handling.
2019-02-04 10:38:42 +01:00
Nikita Popov
aad39879f2
Remove bareword fallback for constants
...
Access to undefined constants will now always result in an Error
exception being thrown.
This required quite a few test changes, because there were many
buggy tests that unintentionally used bareword fallback in combination
with error suppression.
2019-01-31 13:52:06 +01:00
Nikita Popov
9c5ab992ac
Merge branch 'PHP-7.4'
2019-01-31 09:40:01 +01:00
Nikita Popov
340c6d3927
Revert "Don't silence fatal errors with @"
...
This reverts commit abd36289e2 .
This wasn't ready for merging yet, there are still some test
failures.
2019-01-31 09:39:10 +01:00
Joe Watkins
839bdf12ee
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Don't silence fatal errors with @
2019-01-31 07:11:18 +01:00