Dmitry Stogov
b6cc4d2009
Use zval_ptr_dtor() instead of zval_dtor() in internal functions that destroy new created object (This is safer and produces less code)
2018-07-05 11:54:26 +03:00
Dmitry Stogov
4a475a4976
Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized destructors.
...
zval_dtor() doesn't make a lot of sense in PHP-7.* and it's used incorrectly in some places.
Its occurances should be replaced by zval_ptr_dtor() or zval_ptr_dtor_nogc(), or even more specialized destructors.
2018-07-04 19:22:24 +03:00
Anatol Belski
c9fc0095ce
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fixed bug #76462 Undefined property: DateInterval::$f
2018-06-12 15:31:49 +02:00
Anatol Belski
5f1190684f
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76462 Undefined property: DateInterval::$f
2018-06-12 15:31:01 +02:00
Anatol Belski
7212829435
Fixed bug #76462 Undefined property: DateInterval::$f
2018-06-12 15:30:14 +02:00
Nikita Popov
befc518c82
Merge branch 'PHP-7.2'
2018-06-08 23:11:45 +02:00
Nikita Popov
e029019275
Deduplicate code using php_timezone_to_string()
...
Looks like this usage was overlooked when the function was
introduced.
2018-06-08 23:10:43 +02:00
David Carlier
ad52ec3db8
cast to int to disable compilation warnings.
2018-06-08 23:08:42 +02:00
Dmitry Stogov
f2b4ec4bdc
Export standard object handlers, to avoid indirect access
2018-05-31 11:57:22 +03:00
Pavel Kovář
11b5ec491f
Export php_date_get_interval_ce() and php_date_get_period_ce() for extension use
2018-05-23 21:04:07 +02:00
Dmitry Stogov
524f5245c5
Avoid useless checks, using zend_string_efree(), in cases where the string is known to be a temporary allocated zend_string.
2018-05-08 17:30:15 +03:00
Dmitry Stogov
9565075cbd
Destroy function arguments in direct order
2018-05-08 15:28:57 +03:00
Derick Rethans
dc796b04c1
Updated to version 2018.5 (2018e)
2018-05-08 09:24:28 +01:00
Derick Rethans
1a25137a69
Updated to version 2018.5 (2018e)
2018-05-08 09:24:27 +01:00
Derick Rethans
d057d767cc
Updated to version 2018.5 (2018e)
2018-05-08 09:24:25 +01:00
Joe Watkins
f37e95a443
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix #76131 some arginfo params are different from the documentation
2018-03-27 22:00:31 +02:00
Joe Watkins
3e267ca91b
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #76131 some arginfo params are different from the documentation
2018-03-27 21:58:24 +02:00
Gabriel Caruso
63934ea71e
Fix #76131 some arginfo params are different from the documentation
2018-03-27 21:56:46 +02:00
Derick Rethans
f16e0f8bbe
Updated to version 2018.4 (2018d)
2018-03-24 11:26:17 +00:00
Derick Rethans
c72c4c5271
Updated to version 2018.4 (2018d)
2018-03-24 11:26:16 +00:00
Derick Rethans
869ca9b733
Updated to version 2018.4 (2018d)
2018-03-24 11:26:15 +00:00
Gabriel Caruso
caa32517ba
Use ZEND_ARG_ARRAY_INFO in DateTime*::__set_state
2018-03-23 18:58:42 +01:00
Gabriel Caruso
57896cf515
Make some skipped tests run, and fix some skip messages
2018-03-11 16:38:00 +01:00
Christoph M. Becker
ef255c9f0f
Revert "[ci skip] Add missing return types to protos"
...
This reverts commit a2c7c46d5e .
Since apparently there have been some mistakes in this commit, and it's
not clear yet how to solve them, we're reverting for now.
2018-02-27 17:40:03 +01:00
Gabriel Caruso
a2c7c46d5e
[ci skip] Add missing return types to protos
2018-02-24 11:45:17 +01:00
Gabriel Caruso
1314f0fb3a
Use int instead of long in protos
2018-02-23 11:06:20 +01: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
Anatol Belski
f63393aee8
Fix possible memory leak
2018-02-20 08:23:25 +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
Anatol Belski
f44f9d6206
Remove always true condition
2018-02-17 13:02:50 +01:00
Anatol Belski
e72e537d1b
Reduce var scope
2018-02-17 13:02:49 +01:00
Remi Collet
636905e8b6
Merge branch 'PHP-7.2'
...
* PHP-7.2:
factorization of duplicated code
2018-02-14 13:16:55 +01:00
Remi Collet
17164bcf8d
factorization of duplicated code
2018-02-14 13:15:09 +01:00
Gabriel Caruso
b8bb4d77ca
Remove empty sections in tests
2018-02-14 11:10:59 +01:00
Remi Collet
528bc00d84
Fix timezone var_dump from 51f2a5803f
2018-02-14 08:59:24 +01:00
CHU Zhaowei
51f2a5803f
Fixed bug #68406 calling var_dump on a DateTimeZone object modifies it
2018-02-12 09:20:14 +01:00
CHU Zhaowei
766271a105
fix #68406
2018-02-12 09:19:53 +01:00
Joe
8c1147b089
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #68406 calling var_dump on a DateTimeZone object modifies it
2018-02-12 09:19:11 +01:00
jhdxr
070211b3e3
Fixed bug #68406 calling var_dump on a DateTimeZone object modifies it
2018-02-12 09:17:21 +01:00
Christoph M. Becker
c718970e9e
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix #75857 : Timezone gets truncated when formatted
2018-02-11 12:56:39 +01:00
Christoph M. Becker
7554fd9101
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #75857 : Timezone gets truncated when formatted
2018-02-11 12:49:41 +01:00
Gabriel Caruso
f706937120
Fix #75857 : Timezone gets truncated when formatted
...
Use sizeof buffer instead of hard-coded lenghts
2018-02-11 03:14:41 +01:00
Nikita Popov
f16710961b
Merge branch 'PHP-7.2'
2018-02-10 19:31:09 +01:00
Nikita Popov
ee3f3a9d75
Merge branch 'PHP-7.1' into PHP-7.2
2018-02-10 19:30:57 +01:00
Pedro Lacerda
fddd7e38bd
Fixed bug #75928
2018-02-10 19:29:47 +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
9a4cc52c23
Remove superfluous PHP version check in tests
...
Also remove tests that target only old PHP versions.
2018-02-04 16:58:54 +01:00