Nikita Popov
53fdcd718b
Merge branch 'PHP-7.4'
2019-09-03 09:50:23 +02:00
Nikita Popov
c0e9b1532e
Add zpp check to spl_classes()
2019-09-03 09:50:08 +02:00
Nikita Popov
2bfbb16ff2
Merge branch 'PHP-7.4'
2019-09-03 09:44:09 +02:00
Nikita Popov
5acedabfc0
Clarify failure behavior of spl_iterator_apply()
...
It only fails if it throws, in which case it is meaningless to
set a return value.
2019-09-03 09:43:22 +02:00
Tyson Andre
149588280b
Fix opcache optimizer info for time_nanosleep (again)
...
Fixes my earlier PR #4617
If I remember correctly,
The F0 macro is used for return values that are guaranteed to not be
reference counted.
The F1 macro is used for return values that may have up to 1 reference
(i.e. MAY_BE_RC1).
I didn't notice that time_nanosleep needed to be F1 since it could
return an array, and that array is reference counted.
2019-09-03 09:31:01 +02:00
Christoph M. Becker
2b061654bf
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Add missing argument checks
2019-09-03 09:28:48 +02:00
Christoph M. Becker
de643aaa46
Add missing argument checks
...
These functions don't expect any arguments, so we check that none are
given.
2019-09-03 09:27:55 +02:00
Nikita Popov
7f78f839dc
php_stream_from_zval can no longer return false
2019-09-03 09:25:50 +02:00
Nikita Popov
3ac0f42c40
Merge branch 'PHP-7.4'
2019-09-03 09:24:20 +02:00
Nikita Popov
632708ac02
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-03 09:24:05 +02:00
Nikita Popov
d66e0f165d
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-03 09:23:55 +02:00
Tyson Andre
9c3b7ccda5
Fix opcache return type for hash_update_stream
...
It can return false if the resource type is wrong.
```
php > var_export(hash_update_stream(hash_init('md5'),
imagecreate(1,1)));
Warning: hash_update_stream(): supplied resource is not a valid stream
resource in php shell code on line 1
false
```
The return types were initially added in
c88ffa9a56
2019-09-03 09:23:39 +02:00
Christoph M. Becker
7695049b86
Don't explicitly set return value on ZFR failure in ext/xmlwriter
...
Failing `zend_fetch_resource(2)` throws as of PHP 8.0.0, so explicitly
setting a return value is useless, and also slightly confusing.
2019-09-03 09:17:08 +02:00
Christoph M. Becker
489dec18fc
Add ext/xmlwriter stubs
2019-09-03 09:11:42 +02:00
Dmitry Stogov
0581508ba4
Fixed pow() function info
2019-09-02 21:44:10 +03:00
Dmitry Stogov
53b3a449bb
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Update PHP_API_VERSION
2019-09-02 19:03:45 +03:00
Dmitry Stogov
78aa89a3ee
Update PHP_API_VERSION
2019-09-02 19:02:40 +03:00
Nikita Popov
4fc4249d24
Make ReflectionType an abstract class
...
This is never instantiated directly, only child classes are used.
2019-09-02 15:38:56 +02:00
Christoph M. Becker
6ca2e1db8e
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Update NEWS
2019-09-02 15:22:19 +02:00
Christoph M. Becker
f597059001
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS
2019-09-02 15:21:49 +02:00
Christoph M. Becker
f712925500
Update NEWS
2019-09-02 15:21:20 +02:00
Christoph M. Becker
6ea698869c
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #76577 : outdated documentation concerning track_errors
2019-09-02 15:07:48 +02:00
Christoph M. Becker
38d2c9bd62
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #76577 : outdated documentation concerning track_errors
2019-09-02 15:06:45 +02:00
Christoph M. Becker
86ddc469f9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #76577 : outdated documentation concerning track_errors
2019-09-02 15:05:57 +02:00
Christoph M. Becker
cd63908ab8
Fix #76577 : outdated documentation concerning track_errors
2019-09-02 15:05:01 +02:00
Nikita Popov
bdf2cd7508
Move isBuiltin() method from ReflectionType to ReflectionNamedType
...
This method only makes sense for single types, e.g. it would be
meaningless for union types.
Note that we always return ReflectionNamedType right now, so this does
not break compatibility for code using any currently existing types.
2019-09-02 14:59:31 +02:00
Nikita Popov
603b9c43cb
Add arg type assertions to DO_ICALL
...
Now that DO_ICALL is also used for functions with type hints, we
should include the arginfo sanity check assertions in there as
well.
2019-09-02 14:30:51 +02:00
Dmitry Stogov
33e10fe1cb
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Free two bits in fn_flags by merging ZEND_ACC_HEAP_RT_CACHE/ZEND_ACC_USER_ARG_INFO and ZEND_ACC_DONE_PASS_TWO/ZEND_ACC_ARENA_ALLOCATED that may be used only for user/internal functions
2019-09-02 14:20:01 +03:00
Dmitry Stogov
c739023a50
Free two bits in fn_flags by merging ZEND_ACC_HEAP_RT_CACHE/ZEND_ACC_USER_ARG_INFO and ZEND_ACC_DONE_PASS_TWO/ZEND_ACC_ARENA_ALLOCATED that may be used only for user/internal functions
2019-09-02 14:05:28 +03:00
Dmitry Stogov
633c5886bc
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed information about unused flags
2019-09-02 12:50:40 +03:00
Dmitry Stogov
e6d3a218f0
Fixed information about unused flags
2019-09-02 12:50:05 +03:00
Dmitry Stogov
a5597312e4
Fixed performance degradation caused by arg_info of internal function
2019-09-02 12:11:18 +03:00
Nikita Popov
d19ecd0f33
Fix typo in type
2019-09-02 10:55:51 +02:00
Nikita Popov
ea5854ca8c
Make error_reporting=E_ALL the default
2019-09-02 10:03:26 +02:00
Nikita Popov
f50f7418b5
Merge branch 'PHP-7.4'
2019-09-02 09:37:41 +02:00
Nikita Popov
0f489db808
Merge branch 'PHP-7.3' into PHP-7.4
2019-09-02 09:37:26 +02:00
Nikita Popov
7659182632
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-02 09:36:58 +02:00
Nikita Popov
5a0980f1d9
Fix pkg-config version constraint for ICU
...
On PHP 7.2 our minimum ICU version is 4.0, not 40.
2019-09-02 09:36:20 +02:00
George Peter Banyard
d0754b86b1
Promote warnings to errors in substr_count()
2019-08-31 23:37:04 +02:00
George Peter Banyard
0240b903c5
Promote warnings to errors in substr_compare()
2019-08-31 23:34:24 +02:00
George Peter Banyard
c072ef71ee
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Drop E_STRICT notice in mysqli extension
2019-08-31 23:17:21 +02:00
George Peter Banyard
e895e96286
Drop E_STRICT notice in mysqli extension
2019-08-31 23:14:10 +02:00
Nikita Popov
11819efb4f
Merge branch 'PHP-7.4'
2019-08-30 17:25:27 +02:00
Nikita Popov
77a0fa101e
Reenable alloca support on ZTS
...
This got disabled due to an incorrect change in a preprocessor condition
in 2104bea5d7 . It was not supposed to
be disabled.
2019-08-30 17:24:06 +02:00
Nikita Popov
ec9297592e
Check zpp before other errors in SoapServer::addSoapHeader()
2019-08-30 17:03:25 +02:00
Nikita Popov
82d9f14532
Merge branch 'PHP-7.4'
2019-08-30 16:37:20 +02:00
Nikita Popov
1e4cc5bf0b
Fix file clashes in copy tests
...
Create the "*" file in a sub-directory rather than the main test
directory, so that it's different for each test.
2019-08-30 16:36:49 +02:00
Nikita Popov
c217e31d0d
Merge branch 'PHP-7.4'
2019-08-30 16:10:11 +02:00
Nikita Popov
2f67f32eaa
Remove bogus vcwd_open
...
This is a left-over from the Linux version...
2019-08-30 16:09:55 +02:00
Nikita Popov
ded9b987bb
Merge branch 'PHP-7.4'
2019-08-30 16:08:05 +02:00