summaryrefslogtreecommitdiff
path: root/ext/reflection/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug #71767Grigorii Sokolik2016-03-111-0/+44
|
* Fixed bug #71018 (ReflectionProperty::setValue() behavior changed)Xinchen Hui2015-12-042-1/+44
|
* Fixed testXinchen Hui2015-11-271-1/+1
|
* Fixed bug #70982 (setStaticPropertyValue behaviors inconsistently with 5.6)Xinchen Hui2015-11-271-0/+22
|
* Merge branch 'PHP-5.6' into PHP-7.0Xinchen Hui2015-11-241-0/+10
|\
| * Fixed bug #70960 (ReflectionFunction for array_unique returns wrong number ↵Xinchen Hui2015-11-241-0/+10
| | | | | | | | of parameters)
* | Merge branch 'PHP-5.6' into PHP-7.0Xinchen Hui2015-11-231-0/+44
|\ \ | |/
| * Add bug #70957 and #70958 releated test in refectionXinchen Hui2015-11-231-0/+44
| |
| * Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-01-311-0/+18
| |\ | | | | | | | | | | | | * PHP-5.5: Added test and possible fix for https://bugs.php.net/bug.php?id=67068
| | * Added test and possible fix for https://bugs.php.net/bug.php?id=67068Danack2015-01-311-0/+18
| | |
* | | Fixed typo in reflection phptJames Titcumb2015-11-071-1/+1
| | |
* | | Move the tests to proper placeXinchen Hui2015-10-142-0/+28
| | |
* | | Fix bug #70650Márcio Almada2015-10-071-0/+41
| | |
* | | Add test for ReflectionMethod::getPrototype_basic()marcosptf2015-09-021-0/+29
| | |
* | | Fix bogus traces with ReflectionGenerator::getTrace()Bob Weinand2015-08-203-2/+63
| | |
* | | Don't leak generator cycle in ReflectionGenerator testNikita Popov2015-07-031-1/+1
| | | | | | | | | | | | This is tracked by bug #69989.
* | | Merge branch 'pull-request/1284'Anatol Belski2015-06-1715-25/+25
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * pull-request/1284: Rename interface macros Fix typo in UPGRADING Move definition of Throwable to zend_exceptions.h/c Check for zend_ce_throwable instead Fix some missed tests Add Throwable tests Fix previous exception type check Updated UPGRADING with RFC link Changed AssertionException to AssertionError Update exception error messages Throwable method signatures. Update exception names in tests after formatting changes. Merge exception formatting changes. Make zend_get_exception_base static. Fix a few missed tests. Fix handler double copy. Updated tests to reflect exception class changes. Remodel exceptions based on Throwable interface
| * | | Changed AssertionException to AssertionErrorAaron Piotrowski2015-06-141-1/+1
| | | |
| * | | Merge branch 'master' into throwable-interfaceAaron Piotrowski2015-06-143-7/+214
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # Zend/zend_language_scanner.c # Zend/zend_language_scanner.l # ext/simplexml/tests/SimpleXMLElement_xpath.phpt
| * | | | Update exception names in tests after formatting changes.Aaron Piotrowski2015-05-177-7/+7
| | | | |
| * | | | Merge branch 'master' into throwable-interfaceAaron Piotrowski2015-05-1714-20/+24
| |\ \ \ \
| * | | | | Updated tests to reflect exception class changes.Aaron Piotrowski2015-05-1613-23/+23
| | | | | |
* | | | | | Rmoved opcache.load_comments.Dmitry Stogov2015-06-1510-10/+0
| |_|/ / / |/| | | |
* | | | | Reflection support for type hints and return typesMatteo Beccati2015-06-084-47/+204
| | | | |
* | | | | Merge remote-tracking branch 'pollita/reflection.typehint'Sara Golemon2015-06-082-7/+57
| |/ / / |/| | | | | | | | | | | | | | | | | | | Conflicts: ext/reflection/php_reflection.c ext/reflection/tests/ReflectionExtension_getClasses_basic.phpt
* | | | Display TypeExceptions like normal exceptionsNikita Popov2015-05-171-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We currently don't show the argument at which the error actually occured in the trace - should probably either add it or don't display args on incomplete frames altogether, otherwise this'll probably be confusing.
* | | | Tweak uncaught exception message displayNikita Popov2015-05-1713-19/+19
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements a reduced variant of #1226 with just the following change: -Fatal error: Uncaught exception 'EngineException' with message 'Call to private method foo::bar() from context ''' in %s:%d +Fatal error: Uncaught EngineException: Call to private method foo::bar() from context '' in %s:%d The '' wrapper around messages is very weird if the exception message itself contains ''. Futhermore having the message wrapped in '' doesn't work for the "and defined" suffix of TypeExceptions.
* | | Display EngineExceptions like ordinary exceptionsNikita Popov2015-05-156-6/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | TypeException stays as-is for now because it uses messages that are incompatible with the way exception messages are displayed. closure_038.phpt and a few others now show that we're generating too many exceptions for compound operations on undefined properties -- this needs to be fixed in a followup.
* | | Updated test to include ReflectionGeneratorMatteo Beccati2015-05-151-8/+13
| | |
* | | Add ReflectionGenerator classBob Weinand2015-05-142-0/+152
| | |
* | | Rebase Joe's anon classes implementationkrakjoe2015-04-262-1/+24
| | |
* | | Always throw TypeException on throwing zpp failuresNikita Popov2015-04-066-29/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge branch 'InternalClassClean'Dmitry Stogov2015-04-016-65/+145
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * InternalClassClean: Fixed test Patch improvement: Fixed indentation. Fixed comment style. Fixed commented out code. Reverted change to function name and added note of why it is different from the class it is actually changing. Made UConverter throw an exception if the constructor fails. Fixed PDO constructor to not return null. Fixed fileinfo behaviour. Made Phar throw exception on bad constructor. Converted intl extension to use IntlException in constructors. Fixed SplFixedArray and tests. Fixed ReflectionExtension and ReflectionProperty. Fixed ReflectionFunction, ReflectionMethod and ReflectionParameter. Fixed PDORow behaviour and message.
| * \ \ Merge branch 'InternalClassClean' of github.com:Danack/php-src into ↵Dmitry Stogov2015-03-306-65/+145
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | InternalClassClean * 'InternalClassClean' of github.com:Danack/php-src: Fixed indentation. Fixed comment style. Fixed commented out code. Reverted change to function name and added note of why it is different from the class it is actually changing. Made UConverter throw an exception if the constructor fails. Fixed PDO constructor to not return null. Fixed fileinfo behaviour. Made Phar throw exception on bad constructor. Converted intl extension to use IntlException in constructors. Fixed SplFixedArray and tests. Fixed ReflectionExtension and ReflectionProperty. Fixed ReflectionFunction, ReflectionMethod and ReflectionParameter. Fixed PDORow behaviour and message.
| | * | | Fixed ReflectionExtension and ReflectionProperty.Danack2015-03-012-31/+49
| | | | |
| | * | | Fixed ReflectionFunction, ReflectionMethod and ReflectionParameter.Danack2015-03-014-34/+96
| | | | |
* | | | | Finish PHP 4 constructor deprecationNikita Popov2015-03-3115-17/+50
|/ / / /
* | | | Fix tests on WindowsKalle Sommer Nielsen2015-03-262-2/+2
| | | | | | | | | | | | | | | | CRLF takes +2 bytes when running the tests, making it yield 13 instead of 11
* | | | Errors converted to exceptions are not "recoverable" anymore.Dmitry Stogov2015-03-102-2/+2
| | | |
* | | | Implement engine exceptionsDmitry Stogov2015-03-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/engine_exceptions_for_php7 Pending changes regarding naming of BaseException and whether it should be an interface.
* | | | Fix ReflectionFunction::isDeprecated() testNikita Popov2015-03-091-8/+3
| | | | | | | | | | | | | | | | | | | | We currently don't have deprecated functions ... so just switch this to testing a non-deprecated function.
* | | | Use a deprecated function that still exists.POST_PHP7_EREG_MYSQL_REMOVALSAdam Harvey2015-03-051-1/+7
| | | |
* | | | Merge remote-tracking branch 'datibbaw/kill-ereg'Adam Harvey2015-03-052-7/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ext/ereg/config.w32 ext/ereg/config0.m4 ext/ereg/ereg.c ext/ereg/php_ereg.h ext/ereg/php_regex.h ext/ereg/regex/engine.c ext/ereg/regex/main.c ext/ereg/regex/regcomp.c ext/ereg/regex/regerror.c ext/ereg/tests/split_error_002.phpt ext/ereg/tests/split_variation_003.phpt ext/ereg/tests/spliti_error_002.phpt ext/ereg/tests/spliti_variation_003.phpt ext/pgsql/pgsql.c sapi/apache/php_apache_http.h sapi/apache_hooks/php_apache_http.h
| * | | | Revert "Revert "Removing ext/ereg and dependencies""Tjerk Meesters2014-09-112-7/+7
| | | | | | | | | | | | | | | | | | | | This reverts commit 1981dd9c73ada7ea893b4636b84211f68838ba23.
| * | | | Revert "Removing ext/ereg and dependencies"Dmitry Stogov2014-09-112-7/+7
| | | | | | | | | | | | | | | | | | | | This reverts commit 86de7963fe69638431c0aa8f413d25e01bf99d68.
| * | | | Removing ext/ereg and dependenciesTjerk Meesters2014-09-112-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Affected extensions: - opcache (use pcre) - mbstring (removed ereg functions overloading) - pgsql (use pcre) - reflection (test cases using 'ereg') SAPI: - apache (header only) - apache_hooks (header only)
* | | | | Improved assert() according to expectations RFC.Dmitry Stogov2015-03-021-1/+3
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See https://wiki.php.net/rfc/expectations Squashed commit of the following: commit 3f3651a7870738e35ec541e53b53069152135b24 Author: Dmitry Stogov <dmitry@zend.com> Date: Mon Mar 2 11:56:33 2015 +0300 opcode 137 is used for ZEND_OP_DATA and con't be reused for ZEND_ASSERT_CHECK commit ca8ecabf2a5f97f9116839c33396c9a7037e4368 Merge: 24328ac 9dac923 Author: Dmitry Stogov <dmitry@zend.com> Date: Mon Mar 2 10:49:23 2015 +0300 Merge branch 'master' into assert * master: Update NEWS Fixed bug #69139 (Crash in gc_zval_possible_root on unserialize) windows only test Align entries format Align entries format for 5.6.7 Align entries format for 5.5.23 Bump header year Fixed bug #69144 (strtr not replacing with partly matching replace pairs) Fixed test? Revert mktime()/gmmktime()'s arginfo Update NEWS Fixed bug #69141 Missing arguments in reflection info for some builtin functions Add NEWS entry Remove useless date warning Fix ARG_INFO for levenshtein Fix ARG_INFO for levenshtein fix dir separator in tests Update NEWS Fixed bug #69085 (SoapClient's __call() type confusion through unserialize()). commit 24328ac03f79a0f3b19be7411bf9e173f392abda Merge: 021fd94 1cdee9a Author: Dmitry Stogov <dmitry@zend.com> Date: Fri Feb 27 15:57:13 2015 +0300 Merge branch 'master' into assert * master: Fixed C++ support Fixed bug #69115 crash in mail Reorder Update NEWs Fixed bug #69121 (Segfault in get_current_user when script owner is not in passwd with ZTS build) Update News Fixed bug #69125 (Array numeric string as key) fix bug#68942's patch Fixed ability to build unspecialized executor Fixed bug #69124 (method name could not be used when by ref) Fixed a bug that header value is not terminated by '\0' when accessed through getenv(). Fixed a bug that header value is not terminated by '\0' when accessed through getenv(). commit 021fd94ed1d692d212e6e30c6c1a9767c3f16f7f Merge: 49963eb ace1f82 Author: Dmitry Stogov <dmitry@zend.com> Date: Thu Feb 26 11:26:03 2015 +0300 Merge branch 'master' into assert * master: (59 commits) Improved ASSIGN_DIM handler Don't inline slow path Revert a part committted by mistake Fixed compilation warnings Fixed a bug that header value is not terminated by '\0' when accessed through getenv(). better name Improve fix for #69038 Update NEWs Fixed bug #69108 ("Segmentation fault" when (de)serializing SplObjectStorage) Added specialized versions of DO_FCALL handler: DO_ICALL - for internal functions DO_UCALL - for user functions DO_FCALL_BY_NAME - plain, most probably user, funcstions (not methods) Use cache_slot offsets instead of indexes (simplify run-time instructions) Split INIT_FCALL_BY_NAME inti INIT_FCALL_BY_NAME(CONST+STRING) and INIT_DYNAMIC_CALL(CONST-STRING|TMPVAR|CV) Support list($a, $b) = $a Avoid unnecassary check Make zend_array_destroy() to free the corresponding zend_array Eliminate check on the fast path Make current() and key() receive argument by value. Use Firebird default home folder, replace Interbase with Firebird Updated NEWS updated NEWS ... Conflicts: Zend/zend_vm_execute.h Zend/zend_vm_opcodes.c Zend/zend_vm_opcodes.h commit 49963ebf9d2bcd6d2670203dd72884f6ba6c8a4b Merge: 07b1f92 6b77959 Author: Dmitry Stogov <dmitry@zend.com> Date: Thu Feb 19 11:13:08 2015 +0300 Merge branch 'master' into assert * master: Implemented AST pretty-printer update NEWS to match the actual stuff in 5.6.6 update NEWS to match the actual stuff in 5.5.22 update NEWS(add missing entry for the enchant fix, and reorder the entries a bit) fix typo in bug# update NEWS fix email format update NEWS update 5.6.6 release date in NEWS Fix bug #69033 (Request may get env. variables from previous requests if PHP works as FastCGI) BFN fix test fix test fix test Fixed bug #65593 (Segfault when calling ob_start from output buffering callback) Updated NEWS add CVE 5.4.39 next Fix associativity to match Perl Blast off to space. Conflicts: Zend/zend_ast.c commit 07b1f92ed662f6fa9309e679b83aff328362c98b Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Feb 18 23:06:32 2015 +0300 fixed pretty-printer (support for "elseif") commit 5a976c8d85078502b48379996ab066e57533a0c3 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Feb 18 19:50:08 2015 +0300 Fixed vaeious ptetty-printer issues commit 69491e8e8e692030b0585aab485146906c0fedaf Merge: 8473157 3ddc246 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Feb 18 10:18:32 2015 +0300 Merge branch 'master' into assert * master: Set PHP_JSON_VERSION to 1.4.0 Remove unnecessary resource checks in openssl ext JSON is now maintained commit 8473157fbb12d03fff8d5b602865a4b667522a4d Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Feb 18 10:17:26 2015 +0300 Fixed typo and white spaces commit 96de5ffc8d604df9797d0141ae5ad9c15e1d6c32 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Feb 18 00:28:39 2015 +0300 Fixed assert() in namesapaces commit 5eba069c28e7b6590618707e0b21cdb2dd62a192 Merge: 4a2d9c0 d428bf2 Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Feb 17 22:45:55 2015 +0300 Merge branch 'master' into assert * master: (25 commits) improve debugability in TS debug builds More UPGRADING, in particular on foreach Fixed bug #69038 (switch(SOMECONSTANT) misbehaves) for master Replace var is introduced abstain from using xmlCleanupParser fix TS build Fix bug #68942 (Use after free vulnerability in unserialize() with DateTimeZone) update news Fix bug #68942 (Use after free vulnerability in unserialize() with DateTimeZone) Port for for bug #68552 Fix bug #68942 (Use after free vulnerability in unserialize() with DateTimeZone) Update NEWS Fixed bug #69038 (switch(SOMECONSTANT) misbehaves) - BFN Don't read the local php.ini when Generating Phar When building phar shared, you can end up loading a previous phar.so that isn't compatible with the php cli being used to generate Phar here. - Fixed bug #67827 (broken detection of system crypt sha256/sha512 support) Delete json outdated package.xml made ZEND_TSRMLS_CACHE_* macros look like function calls - Fix merge - Fixed bug #67427 (SoapServer cannot handle large messages) patch by: brandt at docoloc dot de ... commit 4a2d9c0953dccd9e78ebee9291e1213419eb9136 Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Feb 17 22:45:10 2015 +0300 Implemented AST pretty-printer to capture expression passed to assert() commit 7a059b66d51a65159801bd826346721325b89fec Merge: 9973df7 3892eba Author: Dmitry Stogov <dmitry@zend.com> Date: Mon Feb 16 18:42:28 2015 +0300 Merge branch 'expect' of github.com:krakjoe/php-src into assert * 'expect' of github.com:krakjoe/php-src: import expect Conflicts: Zend/zend_compile.c Zend/zend_execute_API.c Zend/zend_globals.h Zend/zend_vm_def.h Zend/zend_vm_execute.h Zend/zend_vm_opcodes.c Zend/zend_vm_opcodes.h ext/opcache/Optimizer/block_pass.c ext/opcache/Optimizer/pass1_5.c ext/standard/assert.c ext/standard/tests/assert/assert_error3.phpt commit 3892eba2bf56a7699453855c995404106322718d Author: krakjoe <joe.watkins@live.co.uk> Date: Sun Feb 2 12:49:35 2014 +0000 import expect
* | | | Made ZEND_ACC_TRAIT a saner valueGuilherme Blanco2015-02-122-3/+3
| | | | | | | | | | | | | | | | CC_TRAIT valued as 0x120 is too magical to be comprehensible by others.
* | | | Add a constant of type CONST_PERSISTENT to testBob Weinand2015-02-101-1/+2
| | | |
* | | | Revert removal of two ReflectionParameter functionsBob Weinand2015-02-104-46/+105
| | | | | | | | | | | | | | | | Rather fix them for now by exempting function parameter defaults from *any* (non-ct) constant substitution (also from persistent constant substitution, which was already broken before)