1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 21:41:22 +02:00
Commit Graph

109022 Commits

Author SHA1 Message Date
Nikita Popov
ab2120e4e5 Fix test 2018-09-30 19:56:28 +02:00
Kalle Sommer Nielsen
8595dc8fa9 Fix some tests and improve coverage for Windows in SPL 2018-09-30 10:41:34 +02:00
Gabriel Caruso
257bec33f8 Use already set variable 2018-09-30 02:01:10 -03:00
Nikita Popov
03ba053af0 Merge branch 'PHP-7.3' 2018-09-29 21:20:08 +02:00
Nikita Popov
b617a5b2ea Merge branch 'PHP-7.2' into PHP-7.3 2018-09-29 21:20:01 +02:00
James Titcumb
950c338f80 Fix reflection arguments for sodium_memzero function 2018-09-29 21:19:42 +02:00
Nikita Popov
fc18f44213 Deprecate unbinding of $this of non-static methods
Static calls to non-static methods have been fully deprecated in
PHP 7.0 as part of https://wiki.php.net/rfc/reclassify_e_strict.

A combination of ReflectionMethod::getClosure() ("fake closures")
and Closure::bindTo() etc can be used to achieve the same behavior.
This commit ensures that a deprecation notice will be thrown also
in this case.
2018-09-29 21:01:27 +02:00
Nikita Popov
c4cb3250ca Generalize compile_typename
Return zend_type instead of assigning to arg_info. Also move
nullable handling into the function.
2018-09-29 18:53:48 +02:00
Nikita Popov
96da1fe8a9 Fixed bug #76737
Explicitly prohibit serialization and unserialization of reflection
objects.
2018-09-29 14:47:57 +02:00
Nikita Popov
2ae2e820be Merge branch 'PHP-7.3' 2018-09-29 14:23:13 +02:00
Nikita Popov
8b8b625d08 Fixed bug #72635
This seems to be a simple oversight, where we did not enable
exceptions. Other constexpr conditions already throw, so there is
no particular reason to stick to a fatal error here.
2018-09-29 14:21:08 +02:00
Peter Kokot
80c6ba26e3 Remove and refactor ext/spl/examples
- Test file from ext/spl/examples has been moved to ext/spl/tests
- Other custom SPL examples and implementations were removed in favor of
the PHP manual.
2018-09-29 09:29:32 +02:00
Peter Kokot
ab60b79912 Remove outdated soap examples
This patch removes PHP soap extension examples in favor of the PHP
manual.
2018-09-29 09:26:29 +02:00
Peter Kokot
61536b9d64 Remove unused ext/bz2/php_bz2.def
Exporting symbols has been added via
a7ba08a0bd and then removed via
d5c6825241
2018-09-29 09:23:31 +02:00
Nikita Popov
36a4f58ab9 Remove redundant ce from reflection property_reference
The ce is already stored in the main reflection object, no need to
store it twice.
2018-09-28 23:16:10 +02:00
Nikita Popov
570f9f6281 Only store zend_type inside reflection type_reference
We don't need the full arg_info and the baggage associated with it.
Storing the type should be safe, as it's part of structures which
are never released during a request (arg_info and in the future
prop_info).
2018-09-28 22:27:14 +02:00
Nikita Popov
7ef42ec359 Merge branch 'PHP-7.3' 2018-09-28 19:18:01 +02:00
Nikita Popov
7189e0b70f Merge branch 'PHP-7.2' into PHP-7.3 2018-09-28 19:17:53 +02:00
Nikita Popov
8e7dfc6ddf Merge branch 'PHP-7.1' into PHP-7.2 2018-09-28 19:17:29 +02:00
Nikita Popov
83e2b9e220 Fixed bug #76946 2018-09-28 19:15:19 +02:00
Sara Golemon
8371159790 Merge branch 'PHP-7.3'
* PHP-7.3:
  Bump versions for 7.1.24-dev
2018-09-28 11:33:12 -04:00
Sara Golemon
0470d21ef3 Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
  Bump versions for 7.1.24-dev
2018-09-28 11:32:56 -04:00
Sara Golemon
fed09a23b7 Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
  Bump versions for 7.1.24-dev
2018-09-28 11:32:41 -04:00
Sara Golemon
69c1b619c9 Bump versions for 7.1.24-dev 2018-09-28 11:31:22 -04:00
Nikita Popov
65abbdad70 Merge branch 'PHP-7.3' 2018-09-28 13:41:36 +02:00
Nikita Popov
8ebe1b8de1 Merge branch 'PHP-7.2' into PHP-7.3 2018-09-28 13:41:29 +02:00
Nikita Popov
99eb4b2ea4 Merge branch 'PHP-7.1' into PHP-7.2 2018-09-28 13:41:06 +02:00
Nikita Popov
fa84b8ebb4 Fix test for release builds 2018-09-28 13:40:58 +02:00
Nikita Popov
136aa37681 Merge branch 'PHP-7.3' 2018-09-28 12:59:17 +02:00
Nikita Popov
25522baec4 Merge branch 'PHP-7.2' into PHP-7.3 2018-09-28 12:58:59 +02:00
Nikita Popov
1c35357b31 Merge branch 'PHP-7.1' into PHP-7.2 2018-09-28 12:57:55 +02:00
Nikita Popov
45cdcb2d0b Fixed bug #76846 2018-09-28 12:56:47 +02:00
Nikita Popov
5a4cb3edde Fix missing access errors for guarded properties
If a property access would normally result in a magic method call,
but the property is subject to an active recursion guard, the
access should behave as if the magic method does not exist.

This commit fixes one instance where this was not the case -- we
should have been generating a property access error, but instead
the operation simply did not do anything.
2018-09-27 14:58:26 +02:00
Peter Kokot
390b74ee34 Rename ext/snmp/tests/bigtest.sh to bigtest
This can avoid some confusions with .gitignored autogenerated `.sh`
files in test directories and to distinguish the autogenerated shell
files from the tracked in Git ones more easily.
2018-09-27 02:41:54 +02:00
Peter Kokot
6b324bf845 [ci skip] Sync licenses
- ext/zip/lib has been unbundled
- ext/phar/zip.c added instead
- renumbered and ordered a bit
2018-09-26 23:40:43 +02:00
Peter Kokot
a4102e1bc3 Remove unused and untouched ext/libmbfl/tests files
Test files of the forked and bundled libmbfl library aren't utilized
in php-src. Instead, the current approach is to use the phpt tests.
2018-09-26 23:08:04 +02:00
Dmitry Stogov
3a3840a847 Avoid useless store and checks in xlat_table. 2018-09-26 17:05:49 +03:00
Peter Kokot
41ac1d492c [ci skip] Mention php_pdo_mysql_sqlstate.h in the contributing info 2018-09-26 13:07:36 +02:00
Peter Kokot
8c28985cae Remove outdated ext/ctype/ctpye.xml reference document
The ctype.xml file has been added with the early ctype extension
implementation and hasn't been updated with the recent changes. Also
file is not used anymore.
2018-09-26 12:57:54 +02:00
Peter Kokot
8e430d7e48 Remove outdated OOP examples Zend/tests/zend2.php.txt
This patch removes outdated examples file from the Zend/tests in favor
of the PHP manual OOP chapter [1].

[1] https://php.net/manual/en/language.oop5.php
2018-09-26 12:56:31 +02:00
Peter Kokot
c951836721 Remove unused files
- ext/simplexml/tests/bug25756_1.xml
- ext/simplexml/tests/bug25756_2.xml
- ext/simplexml/tests/bug25756.xsd
Added via 503d74aa29 and then removed via
9e29f17493

- ext/mysqli/tests/cacert.pem
- ext/mysqli/tests/client-cert.pem
- ext/mysqli/tests/client-key.pem
Added via e9f9f66f2e and then removed via
6d51b7b2e3

- ext/gd/tests/simpletext私はガラスを食べられます.jpg
Added via 3d3f11ede4 and never used

- ext/gd/tests/src.png
Added via cc938b5df0 and never used

- ext/zlib/tests/gzgetss.test
Added via d536ecac5c as a file content of the
ext/zlib/tests/gzgetss.gzbut but never used in tests directly. Removed for
better clarity of zlib tests

- ext/soap/tests/interop/Round3/GroupD/round3_groupD_import2_absolute.wsdl
- ext/soap/tests/interop/Round4/GroupG/round4_groupG_mimerpc.wsdl
- ext/soap/tests/interop/Round4/GroupG/round4_groupG_mimedoc.wsdl
Added via 1d25fc5c7b and never used

- ext/reflection/tests/exception.inc
Removed via 9f8ba2e8a1

- ext/phar/tests/files/extracted.inc
Removed via 549bf83bd1

- ext/phar/tests/cache_list/files/extracted.inc
Added via 05c3104097 and never used
2018-09-26 12:54:20 +02:00
Peter Kokot
ab1ce6058a Make ext/session/mod_files.sh executable
Making shell script executable makes it possible to run like
`ext/session/mod_files.sh` and avoids error permission denied.
2018-09-26 06:11:13 +02:00
Peter Kokot
e3293ad35d Remove unused ext/exif/tests/test6.jpg
Added via 569c69ba36 and then removed via
fb5da94c1b
2018-09-25 22:50:17 +02:00
Sara Golemon
70f3504ae0 Merge branch 'PHP-7.3'
* PHP-7.3:
  Bump version
2018-09-25 16:44:16 -04:00
Sara Golemon
c431b45fe4 Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
  Bump version
2018-09-25 16:43:40 -04:00
Sara Golemon
5f29e3fb6e Bump version 2018-09-25 16:39:25 -04:00
Peter Kokot
981e5e17fa Remove unused ext/enchant/tests files
- ext/enchant/tests/hindi_correct.txt
- ext/enchant/tests/hindi_incorrect.txt

Added via 5956f9a398 but never used.
2018-09-25 22:30:22 +02:00
Nikita Popov
74ade095db Remove unused "dummy" member in reflection_object 2018-09-25 21:47:16 +02:00
Nikita Popov
45bb95c036 Reformat macros in php_reflection.c 2018-09-25 21:47:14 +02:00
Sara Golemon
ffc7f8ae52 Merge branch 'PHP-7.3'
* PHP-7.3:
  Fixed bug #76918 Repeated parameter name in arg info
2018-09-25 12:10:33 -04:00