Máté Kocsis
81fee9f29f
Get rid of method mapping of BreakIterator classes
2020-02-25 23:05:24 +01:00
Máté Kocsis
bcb7847139
Add stubs for Intl BreakIterator
...
Closes GH-5207
2020-02-25 23:05:03 +01:00
Nikita Popov
16897aacce
Remove unnecessary checks in breakpoint iterator
...
The result of Z_INTL_BREAKITERATOR_P() cannot be NULL. This type
of macro in general can never be NULL.
2020-02-25 10:06:13 +01:00
Máté Kocsis
019e8d438c
Throw exception for unconstructed intl objects
...
Closes GH-5052
2020-01-05 23:55:14 +01:00
Máté Kocsis
345703724c
Use RETURN_THROWS() during ZPP in most of the extensions
...
Except for some bigger ones: reflection, sodium, spl
2019-12-31 11:46:11 +01:00
Christoph M. Becker
4008704f62
zend_parse_parameters_throw() is obsolete
...
Since `zend_parse_parameters()` throws now, there is no reason to
explicitly call `zend_parse_parameters_throw()` anymore, and since both
have actually the same implementation, we redefine the latter as macro.
2019-11-01 16:47:15 +01:00
Máté Kocsis
969e7a3c8b
Cleanup return values for Intl when parameter parsing is unsuccessful
...
Closes GH-4871.
2019-10-30 13:21:40 +01:00
Dmitry Stogov
b02b81299c
Comparison cleanup:
...
- introduce zend_compare() that returns -1,0,1 dirctly (without intermediate zval)
- remove compare_objects() object handler, and keep only compare() handler
2019-10-07 17:57:49 +03:00
Gabriel Caruso
5d6e923d46
Remove mention of PHP major version in Copyright headers
...
Closes GH-4732.
2019-09-25 14:51:43 +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
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
Dmitry Stogov
91ef4124e5
Refactor zend_object_handlers API to pass zend_object* and zend_string* insted of zval(s).
2019-02-04 13:20:25 +03:00
Dmitry Stogov
0f7f1498be
Use ZEND_THIS macro to hide implementation details in extensions code.
2018-11-15 19:54:19 +03:00
Dmitry Stogov
8bda22592e
Eliminate useless $this related check
2018-11-14 11:33:14 +03:00
Dmitry Stogov
c6ad0b92b7
Replace getThis() by EX(This), when additional check is not necessary.
2018-11-14 02:44:25 +03:00
Anatol Belski
a04cd4b948
Remove assignment irrelevant for release build
2018-10-14 21:35:57 +02:00
Christoph M. Becker
8a4c2f1621
Require ICU ≥ 50.1
...
Given that ICU is a set of lively developed libraries, that ICU 50.1
has been released on 2012-11-05, and PHP 7.4 is scheduled to be
released seven years after it, we consider it appropriate to ditch
these legacy versions.
Particularly, that would be a reasonable groundwork to implement part
two of the “Deprecate and remove INTL_IDNA_VARIANT_2003” RFC[1], namely
to default idn_to_ascii()'s and idn_to_utf8()'s $variant parameter to
INTL_IDNA_VARIANT_UTS46, which is not defined in ICU < 4.6.
See also the related discussion on internals@[2].
[1] <https://wiki.php.net/rfc/deprecate-and-remove-intl_idna_variant_2003 >
[2] <http://news.php.net/php.internals/101626 >ff
2018-09-15 13:59:54 +02:00
Gabriel Caruso
fb966b9825
Remove unused variables
2018-07-25 22:05:41 -03:00
Dmitry Stogov
67b4c3379a
Uze ZVAL_COPY_DEREF() instead of ZVAL_DEREF() and ZVAL_COPY()
2018-07-09 12:46:46 +03:00
Christoph M. Becker
1b61c3b210
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix #76556 : get_debug_info handler for BreakIterator shows wrong type
2018-06-30 23:22:20 +02:00
Christoph M. Becker
1118fca75d
Fix #76556 : get_debug_info handler for BreakIterator shows wrong type
...
We use the retrieved type for the "type" element instead of the text.
This has been confused during the PHP 7 upgrade[1].
[1] http://git.php.net/?p=php-src.git;a=commit;h=1d793348067e5769144c0f7efd86428a4137baec
2018-06-30 23:15:02 +02:00
Nikita Popov
bc56bb847d
Merge branch 'PHP-7.2'
2018-06-13 23:48:37 +02:00
Nikita Popov
e77077edeb
Make $locale parameter to BreakIterator ctors optional
...
It's documented as such and already accepts null.
2018-06-13 23:47:20 +02:00
Dmitry Stogov
f2b4ec4bdc
Export standard object handlers, to avoid indirect access
2018-05-31 11:57:22 +03:00
Anatol Belski
319856dc62
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix memory leak
2018-04-12 18:26:31 +02:00
Anatol Belski
5fe6d2134b
Fix memory leak
2018-04-12 18:25:27 +02:00
Anatol Belski
d8200e4885
Simplify namespace access
...
The icu namespace is an alias which resolves to the real namespace.
2018-04-01 01:03:40 +02:00
Anatol Belski
8d35a42383
Utilize the recommended way to handle the icu namespace
2018-03-31 18:51:56 +02:00
Anatol Belski
567d01ae20
Remove condition that is always false
2018-02-15 21:19:33 +01:00
Dmitry Stogov
1db8402208
Move zend_object_iterator_funcs structures into read-only data segment
2017-12-14 14:21:22 +03:00
Dmitry Stogov
44e0b79ac6
Refactored array creation API. array_init() and array_init_size() are converted into macros calling zend_new_array(). They are not functions anymore and don't return any values.
2017-09-20 02:25:56 +03:00
Nikita Popov
29af302395
Remove useless dtor handlers in intl
...
These are only indirections to the default handler
2016-07-16 23:16:43 +02:00
Dmitry Stogov
f7b6de5b5e
Cleanup (avoid string reallocations)
2015-07-01 13:26:39 +03:00
Dmitry Stogov
4a2e40bb86
Use ZSTR_ API to access zend_string elements (this is just renaming without semantick changes).
2015-06-30 04:05:24 +03:00
Dmitry Stogov
4bd22cf1c1
Improved zend_string API (Francois Laupretre)
...
Squashed commit of the following:
commit d96eab8d79
Author: Francois Laupretre <francois@tekwire.net>
Date: Fri Jun 26 01:23:31 2015 +0200
Use the new 'ZSTR' macros in the rest of the code.
Does not change anything to the generated code (thanks to compat macros) but cleaner.
commit b352643910
Author: Francois Laupretre <francois@tekwire.net>
Date: Thu Jun 25 13:45:06 2015 +0200
Improve zend_string API
Add missing methods
2015-06-29 16:44:54 +03:00
Dmitry Stogov
1c754f0b71
Get rid of more ZVAL_ZVAL() macros
2015-06-12 13:33:14 +03:00
Dmitry Stogov
e96616739c
Fixed redundand internal constructor behavior (they shouldn't return NULL anymore)
2015-05-07 10:38:47 +03:00
Nikita Popov
e74b84a9fe
Fix Intl constructor leaks
...
Drop the Z_OBJ(return_value) = NULL hack and return status code
from ctor function instead.
2015-04-17 10:33:59 +02:00
Nikita Popov
122d759618
Always throw TypeException on throwing zpp failures
...
Introduces a ZEND_PARSE_PARAMS_THROW flag for zpp, which forces to
report FAILURE errors using a TypeException instead of a Warning,
like it would happen in strict mode.
Adds a zend_parse_parameters_throw() convenience function, which
invokes zpp with this flag.
Converts all cases I could identify, where we currently have
throwing zpp usage in constructors and replaces them with this API.
Error handling is still replaced to EH_THROW in some cases to handle
other, domain-specific errors in constructors.
2015-04-06 11:27:34 +02:00
Dmitry Stogov
1018f462d8
Patch improvement:
...
Removed the corresponding core code.
Fixed ext/com_dotnet and ext/date.
Refactored ext/intl changes.
Improved ext/fileinfo and ext/pdo changes.
Fixed tests.
2015-03-30 18:53:38 +03:00
Danack
99dae96dc0
Converted intl extension to use IntlException in constructors.
2015-03-15 13:59:48 +00:00
Xinchen Hui
5f285482ea
zend_get_parameters_ex is deprecated
2015-02-13 11:26:40 +08:00
Dmitry Stogov
8aa146b810
Fixed use after free
2015-01-26 12:24:33 +03:00
Stanislav Malyshev
cb6fb59b59
Fix the fix for #68884
2015-01-24 23:07:50 -08:00
Anatol Belski
699ada706a
Fixed bug #68884 Null pointer deference
2015-01-22 15:01:27 +01:00
Stanislav Malyshev
b7a7b1a624
trailing whitespace removal
2015-01-10 15:07:38 -08:00
Stanislav Malyshev
82f3d36583
cleanup intl types
2014-12-29 14:06:12 -08:00
Anatol Belski
bdeb220f48
first shot remove TSRMLS_* things
2014-12-13 23:06:14 +01:00
Johannes Schlüter
d0cb715373
s/PHP 5/PHP 7/
2014-09-19 18:33:14 +02:00