Nikita Popov
f821256d00
Remove unused is_constructor arguments
2019-07-15 12:36:31 +02:00
Peter Kokot
e0ea444dd3
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Convert all php_error_docref0 to php_error_docref
2019-07-13 02:10:17 +02:00
George Peter Banyard
1c1de0c41a
Convert all php_error_docref0 to php_error_docref
...
Closes GH-4394
2019-07-13 02:05:17 +02:00
Nikita Popov
a1479fbbd9
Merge branch 'PHP-7.4'
2019-06-25 14:30:24 +02:00
Nikita Popov
b53bb3c15b
Fix UConverter leak
2019-06-25 14:28:58 +02:00
Nikita Popov
77f7ec5152
Fix TimeZone leak in intl MessageFormat
...
I'm just giving each format a distinct owned object here ... sharing
it looks complicated.
2019-06-25 14:28:58 +02:00
Nikita Popov
452076de44
Merge branch 'PHP-7.4'
2019-06-19 17:27:29 +02:00
Nikita Popov
608097a901
Fix various instances of memcpy null ub
2019-06-19 17:27:09 +02:00
Nikita Popov
4d90848d68
Don't verify arginfo types for internal functions
...
To avoid duplicate type checks. In debug builds arginfo is still
checked and will generate an assertions if the function doesn't
subsequently throw an exception.
Some test results change due to differences in zpp and arginfo
error messages.
2019-06-17 11:46:28 +02:00
Dmitry Stogov
457392fa64
Cheaper checks for exceptions thrown from __toString()
2019-06-06 01:47:22 +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
Christoph M. Becker
c89b788a8a
Merge branch 'PHP-7.4'
...
* PHP-7.4:
SimpleXMLElement and ResourceBundle implement Countable
2019-05-31 19:01:41 +02:00
Thomas Gerbet
bfc10978ef
SimpleXMLElement and ResourceBundle implement Countable
...
Both classes already have a count() method and are considered
countable by \is_countable().
2019-05-31 18:59:19 +02:00
Nikita Popov
f20b2c71e5
Merge branch 'PHP-7.4'
2019-05-31 15:40:04 +02:00
Nikita Popov
8a8bc5c452
Update tests for ICU 64
2019-05-31 15:39:03 +02:00
Nikita Popov
45a0656e95
Remove get() object handler
...
Now that set() is gone, there is little point in keeping get(), as
it is essentially just a different way of writing cast_object()
now.
Closes GH-4202.
2019-05-29 17:15:19 +02:00
Dmitry Stogov
b2cdde0826
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Replace ZVAL_COPY() and ZVAL_COPY_VALUE() for IS_OBJECT by cheaper macros
2019-05-28 20:19:15 +03:00
Dmitry Stogov
83804519df
Replace ZVAL_COPY() and ZVAL_COPY_VALUE() for IS_OBJECT by cheaper macros
2019-05-28 20:10:02 +03:00
Peter Kokot
5827aca5f1
Merge branch 'PHP-7.4'
...
* PHP-7.4:
[ci skip] Migrate intl error conventions docs to Markdown
2019-05-12 23:24:08 +02:00
Peter Kokot
6abc6baa2a
[ci skip] Migrate intl error conventions docs to Markdown
2019-05-12 23:24:03 +02:00
Peter Kokot
2cf90bb2f0
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Normalize comments in *nix build system m4 files
2019-05-12 18:51:50 +02:00
Peter Kokot
75fb74860d
Normalize comments in *nix build system m4 files
...
Normalization include:
- Use dnl for everything that can be ommitted when configure is built in
favor of the shell comment character # which is visible in the output.
- Line length normalized to 80 columns
- Dots for most of the one line sentences
- Macro definitions include similar pattern header comments now
2019-05-12 18:43:03 +02:00
Dmitry Stogov
e188e4170f
Use ZEND_TRY_ASSIGN_REF_... macros for arguments passed to internal function by reference
2019-04-24 18:28:29 +03:00
Dmitry Stogov
2e4686b566
Use ZEND_TRY_ASSIGN_REF_... macros for arguments passed to internal function by reference
2019-04-24 18:16:47 +03:00
Dmitry Stogov
34db07567d
Use ZEND_TRA_ASSIGN_REF_... macros for by reference arguments of internal functions.
2019-04-24 16:14:48 +03:00
Nikita Popov
daa78d7749
Merge branch 'PHP-7.4'
2019-04-15 15:28:07 +02:00
Nikita Popov
2d7d5ab5c6
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-15 15:27:37 +02:00
Nikita Popov
a2f3ec1777
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-15 15:27:30 +02:00
Nikita Popov
619c4e9f2e
Fixed bug #77895
2019-04-15 15:26:58 +02:00
Nikita Popov
cd22cfb5d2
Merge branch 'PHP-7.4'
2019-03-18 12:16:24 +01:00
Nikita Popov
7ad04a0537
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-18 12:16:18 +01:00
Nikita Popov
763a7b8ca3
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-18 12:16:12 +01:00
Nikita Popov
b3a669bec1
Make test independent of icu version
...
We don't really care about the actual output here, just that it
doesn't fail.
2019-03-18 12:14:58 +01:00
Nikita Popov
e0cbb80d29
Merge branch 'PHP-7.4'
2019-03-18 11:41:24 +01:00
Nikita Popov
65c9a3f1a1
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-18 11:41:19 +01:00
Nikita Popov
623a11d7de
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-18 11:39:58 +01:00
Nikita Popov
433758ceb3
Allow DateTimeImmutable in datefmt_format_object()
...
As pointed out in a comment on bug #65683 .
2019-03-18 11:39:16 +01:00
Nikita Popov
852485d8ec
Adjust tests for zpp TypeError change
2019-03-11 11:32:20 +01:00
Nikita Popov
86ef425177
Intl: Don't separately report "bad arguments" errors
...
zpp will be throwing for these now, don't report them in addition to
that.
2019-03-11 11:32:20 +01:00
Nikita Popov
513b76794b
Make zpp failures always throw, independent of strict_types
...
Previously zend_parse_parameters (and FastZPP) would handle invalid
arguments depending on strict_types: With strict_types=1, a TypeError
is thrown, with strict_types=0 a warning is thrown and (usually) NULL
is returned. Additionally, some functions (constructors always and
other methods sometimes) opt-it to throwing regardless of strict_types.
This commit changes zpp to always generate a TypeError exception in
PHP 8.
2019-03-11 11:32:20 +01:00
Peter Kokot
80bebdd0e1
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Clean *nix build system
2019-03-07 21:00:36 +01:00
Peter Kokot
f5fa9ddbd5
Clean *nix build system
...
- remove some outdated and not used macro calls
- remove some unused variables
- Remove not needed comment from tokenizer config.m4
- Remove not needed comment
- remove not needed local variables for editors and syntax highlighting
2019-03-07 20:58:14 +01:00
Peter Kokot
d0fd9fe977
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Add AS_HELP_STRING to *nix build configure options
2019-03-07 20:38:04 +01:00
Peter Kokot
9df6a1e4dd
Add AS_HELP_STRING to *nix build configure options
...
The Autoconf's default AS_HELP_STRING macro can properly format help
strings [1] so watching out if columns are aligned manually is not
anymore.
[1] https://www.gnu.org/software/autoconf/manual/autoconf.html#Pretty-Help-Strings
2019-03-07 20:36:59 +01:00
Peter Kokot
9a0345e0dd
Merge branch 'PHP-7.4'
...
* PHP-7.4:
added basic test for UConverter::setSourceEncoding()
2019-02-19 03:18:54 +01:00
Andy McNeice
5bbf0c698f
added basic test for UConverter::setSourceEncoding()
2019-02-19 03:18:26 +01:00
Peter Kokot
4e00d55bd6
Merge branch 'PHP-7.4'
...
* PHP-7.4:
added basic test for UConverter::getDestinationEncoding()
2019-02-19 03:15:42 +01:00
Andy McNeice
d194ceb0c2
added basic test for UConverter::getDestinationEncoding()
2019-02-19 03:15:01 +01:00
Peter Kokot
46a1d23b23
Merge branch 'PHP-7.4'
...
* PHP-7.4:
added basic test for UConverter::getSourceEncoding()
2019-02-19 03:10:42 +01:00