Christoph M. Becker
3278b3347c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #68825 : Exception in DirectoryIterator::getLinkTarget()
2018-08-22 15:40:03 +02:00
Christoph M. Becker
36946f5c45
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #68825 : Exception in DirectoryIterator::getLinkTarget()
2018-08-22 15:38:30 +02:00
Christoph M. Becker
32a728d351
Fix #68825 : Exception in DirectoryIterator::getLinkTarget()
...
intern->file_name may not have been properly set when
DirectoryIterator::getLinkTarget() is called, so we make sure it is
before using it.
2018-08-22 15:37:02 +02:00
Christoph M. Becker
be2447fb7c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add regression test for bug #68175
Fix #68175 : RegexIterator pregFlags are NULL instead of 0
2018-08-18 14:39:15 +02:00
Christoph M. Becker
41d2102c77
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Add regression test for bug #68175
Fix #68175 : RegexIterator pregFlags are NULL instead of 0
2018-08-18 14:37:48 +02:00
Christoph M. Becker
4c448334bd
Add regression test for bug #68175
2018-08-18 14:36:16 +02:00
Gabriel Caruso
c93aba042f
Give a reason why the test was skipped
...
This will help us debug why a test was skipped in GCOV
(http://gcov.php.net/viewer.php?version=PHP_HEAD&func=skip ), and maybe
put them to run again
2018-07-22 16:41:41 -03:00
Nikita Popov
d9acfa45b8
Deprecate fgetss() and gzgetss()
...
SplFileObject::fgetss() will also generate a deprecation notice
through an internal call to fgetss().
Part of RFC https://wiki.php.net/rfc/deprecations_php_7_3 .
2018-07-21 22:38:35 +02:00
Xinchen Hui
0aff0548cb
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Update NEWS
Fixed bug #76367 (NoRewindIterator segfault 11)
2018-05-23 14:46:32 +08:00
Xinchen Hui
dc461d6f56
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76367 (NoRewindIterator segfault 11)
2018-05-23 14:46:01 +08:00
Xinchen Hui
8f221bdec0
Fixed bug #76367 (NoRewindIterator segfault 11)
2018-05-23 14:45:38 +08:00
Gabriel Caruso
e1cc4863d9
Remove duplicated tests
2018-02-22 13:03:21 +01:00
Gabriel Caruso
b895690dfa
remove support for string|unicode in tests
2018-02-22 08:11:30 +01:00
Gabriel Caruso
ded3d984c6
Use EXPECT instead of EXPECTF when possible
...
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00
Nikita Popov
ede663f381
Convert iterator by reference errors to exceptions
...
I'm using RuntimeException in SPL, because other SPL classes that
throw this error used it. Error is used for everything else, because
that's what core does.
2018-02-19 21:58:56 +01:00
Gabriel Caruso
6d785a7a00
Test more functionalities of SPL
2018-02-19 08:26:34 +01:00
Joe
748c40867b
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fixed bug #74519 strange behavior of AppendIterator
2018-02-08 10:19:15 +01:00
Joe
ab770401e1
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #74519 strange behavior of AppendIterator
2018-02-08 10:18:31 +01:00
CHU Zhaowei
495508eceb
fix #74519 strange behavior of AppendIterator
2018-02-08 10:15:09 +01:00
Gabriel Caruso
fef879a2d6
Use bool instead of boolean while throwing a type error
...
PHP requires boolean typehints to be written "bool" and disallows
"boolean" as an alias. This changes the error messages to match
the actual type name and avoids confusing messages like "must be
of type boolean, boolean given".
This a followup to ce1d69a1f6 , which
implements the same change for integer->int.
2018-02-04 23:09:40 +01:00
Gabriel Caruso
ce1d69a1f6
Use int instead of integer in type errors
...
PHP requires integer typehints to be written "int" and does not
allow "integer" as an alias. This changes type error messages to
match the actual type name and avoids confusing messages like
"must be of the type integer, integer given".
2018-02-04 19:08:23 +01:00
Gabriel Caruso
766ce8bdd5
Remove superfluous SKIPIF sections in SPL tests
2018-02-03 17:50:31 +01:00
Gabriel Caruso
53dbc69a8d
Use %d when expecting line number in tests
2018-02-02 22:35:13 +01:00
timurib
a484b9a535
Fix #75765 Exception on extend of undefined class
...
As the parent class is fetched prior to binding, there are no
safety concerns in this case and we can replace the fatal error
with an Error exception.
2018-01-12 18:41:39 +01:00
Nikita Popov
26207101c5
Merge branch 'PHP-7.2'
2017-12-22 18:22:52 +01:00
Nikita Popov
12e991f5bd
Merge branch 'PHP-7.1' into PHP-7.2
2017-12-22 18:22:47 +01:00
Nikita Popov
f14b6f4920
Fixed bug #73209
2017-12-22 18:22:00 +01:00
Nikita Popov
d90797a896
Merge branch 'PHP-7.2'
2017-12-22 18:12:23 +01:00
Nikita Popov
2c880037f5
Merge branch 'PHP-7.1' into PHP-7.2
2017-12-22 18:12:17 +01:00
Nikita Popov
ec142f2c86
Fixed bug #75242
2017-12-22 18:11:38 +01:00
Nikita Popov
9fe0eb8c48
Merge branch 'PHP-7.2'
2017-12-22 18:01:53 +01:00
Nikita Popov
74e3da5c8c
Merge branch 'PHP-7.1' into PHP-7.2
2017-12-22 18:01:30 +01:00
Nikita Popov
ccb113c3e5
Fixed bug #75717
2017-12-22 18:01:03 +01:00
Nikita Popov
9cdd547eca
Fixed bug #74372
2017-12-06 23:36:09 +01:00
Christoph M. Becker
43152bc39f
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #73629 (SplDoublyLinkedList::setIteratorMode masks intern flags)
2017-09-20 15:54:07 +02:00
Christoph M. Becker
0c0b955d5f
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #73629 (SplDoublyLinkedList::setIteratorMode masks intern flags)
2017-09-20 15:47:02 +02:00
Christoph M. Becker
eedc060c92
Fixed bug #73629 (SplDoublyLinkedList::setIteratorMode masks intern flags)
...
We must not overwrite the SPL_DLLIST_IT_FIX flag when changing the
iterator mode.
2017-09-20 15:46:04 +02:00
Joe Watkins
f87e513557
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
fix bug #75173 incorrect behavior of AppendIterator::append in foreach loop
2017-09-12 07:08:01 +01:00
Joe Watkins
7015d22116
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix bug #75173 incorrect behavior of AppendIterator::append in foreach loop
2017-09-12 07:06:35 +01:00
jhdxr
3e11b7fc21
fix bug #75173 incorrect behavior of AppendIterator::append in foreach loop
2017-09-12 07:05:58 +01:00
Nikita Popov
b2824629c2
Merge branch 'PHP-7.1' into PHP-7.2
2017-09-04 21:24:32 +02:00
Nikita Popov
c2e3541cc1
Add test for bug #75155
2017-09-04 21:23:07 +02:00
Nikita Popov
b689857d53
Revert "Fixed #74977 - Appending AppendIterator leads to segfault"
...
This reverts commit dbc2ffba82 .
2017-09-04 21:20:49 +02:00
Xinchen Hui
e7dd9c781b
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update NEWS
Fixed bug #75049 (spl_autoload_unregister can't handle spl_autoload_functions results)
2017-08-09 11:29:46 +08:00
Xinchen Hui
307acb6618
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #75049 (spl_autoload_unregister can't handle spl_autoload_functions results)
2017-08-09 11:29:13 +08:00
Xinchen Hui
b06f8cb58b
Fixed bug #75049 (spl_autoload_unregister can't handle spl_autoload_functions results)
2017-08-09 11:28:53 +08:00
Tyson Andre
5097e2ee13
Implement spl_object_id(object $x) : int
...
spl_object_id is a new function returning the object handle,
as a signed integer.
Discussion for this new function is ongoing on php-internals, see
https://marc.info/?t=143835274500003&r=1&w=2
The object id is unique for the lifetime of the object.
When the object is garbage collected,
different objects may & will have the same object id.
- This is also the case for the string generated by spl_object_hash
It is always possible to cast the object handle to a **signed** zend_long
in php 7.2. _zend_object->handle is always of the type `uint32_t`.
(zend_long is 32 bits on 32 bit builds, 64 bits on 64 bit builds)
As of php 7.0, the object id uniquely identifies the object,
there can't be two objects with the same id but different handlers
(See the implementation of spl_object_hash)
Skip the pointless XORing, as discussed in internals.
- It was intended to avoid exposing in-memory addresses.
- The object handle is not a memory address.
- The output of var_dump() includes the object handle(id)
2017-08-02 17:54:07 +02:00
Joe Watkins
2e8759428b
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed #74977 - Appending AppendIterator leads to segfault
2017-07-25 06:40:25 +01:00
andrewnester
dbc2ffba82
Fixed #74977 - Appending AppendIterator leads to segfault
2017-07-25 06:39:50 +01:00
Nikita Popov
a624ded4d3
Merge branch 'PHP-7.1' into PHP-7.2
2017-07-18 22:16:33 +02:00