]> granicus.if.org Git - php/commit
Store default parameter values of internal functions in arg info
authorMáté Kocsis <kocsismate@woohoolabs.com>
Mon, 6 Apr 2020 09:02:13 +0000 (11:02 +0200)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Wed, 8 Apr 2020 16:37:51 +0000 (18:37 +0200)
commit3709e74b5e495e210ada8039ed81fafa9cbadcdb
treeb7347572b1e22a2a27a45260b4f4773bf916b158
parentb0d8f012f95ba1f2d8dba238c93baf3afb73b78e
Store default parameter values of internal functions in arg info

Closes GH-5353. From now on, PHP will have reflection information
about default values of parameters of internal functions.

Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
132 files changed:
UPGRADING
Zend/tests/argument_restriction_001.phpt
Zend/tests/argument_restriction_003.phpt
Zend/tests/argument_restriction_006.phpt
Zend/tests/bug64988.phpt
Zend/tests/bug70957.phpt
Zend/tests/bug71428.1.phpt
Zend/tests/bug73987.phpt
Zend/tests/bug73987_2.phpt
Zend/tests/closures/closure_from_callable_basic.phpt
Zend/tests/parameter_default_values/internal_declaration_error_class_const.phpt [new file with mode: 0644]
Zend/tests/parameter_default_values/internal_declaration_error_const.phpt [new file with mode: 0644]
Zend/tests/parameter_default_values/internal_declaration_error_false.phpt [new file with mode: 0644]
Zend/tests/parameter_default_values/internal_declaration_error_int.phpt [new file with mode: 0644]
Zend/tests/parameter_default_values/internal_declaration_error_null.phpt [new file with mode: 0644]
Zend/tests/parameter_default_values/userland_declaration_error_class_const.phpt [new file with mode: 0644]
Zend/tests/parameter_default_values/userland_declaration_error_const.phpt [new file with mode: 0644]
Zend/tests/type_declarations/variance/internal_parent.phpt
Zend/zend_API.h
Zend/zend_builtin_functions_arginfo.h
Zend/zend_compile.h
Zend/zend_exceptions_arginfo.h
Zend/zend_inheritance.c
Zend/zend_language_scanner.l
build/gen_stub.php
ext/bz2/bz2_arginfo.h
ext/calendar/calendar_arginfo.h
ext/com_dotnet/com_extension_arginfo.h
ext/com_dotnet/com_persist_arginfo.h
ext/curl/curl_arginfo.h
ext/date/php_date_arginfo.h
ext/dba/dba_arginfo.h
ext/dom/attr_arginfo.h
ext/dom/comment_arginfo.h
ext/dom/document_arginfo.h
ext/dom/domimplementation_arginfo.h
ext/dom/element_arginfo.h
ext/dom/node_arginfo.h
ext/dom/processinginstruction_arginfo.h
ext/dom/text_arginfo.h
ext/dom/xpath_arginfo.h
ext/exif/exif_arginfo.h
ext/ffi/ffi_arginfo.h
ext/fileinfo/fileinfo_arginfo.h
ext/filter/filter_arginfo.h
ext/ftp/ftp_arginfo.h
ext/gd/gd_arginfo.h
ext/gmp/gmp_arginfo.h
ext/hash/hash_arginfo.h
ext/iconv/iconv_arginfo.h
ext/imap/php_imap_arginfo.h
ext/intl/breakiterator/breakiterator_arginfo.h
ext/intl/calendar/calendar_arginfo.h
ext/intl/collator/collator_arginfo.h
ext/intl/converter/converter_arginfo.h
ext/intl/dateformat/dateformat_arginfo.h
ext/intl/formatter/formatter_arginfo.h
ext/intl/locale/locale_arginfo.h
ext/intl/normalizer/normalizer_arginfo.h
ext/intl/php_intl_arginfo.h
ext/intl/resourcebundle/resourcebundle_arginfo.h
ext/intl/spoofchecker/spoofchecker_arginfo.h
ext/intl/tests/locale/bug74993.phpt
ext/intl/timezone/timezone_arginfo.h
ext/intl/transliterator/transliterator_arginfo.h
ext/intl/uchar/uchar_arginfo.h
ext/json/json_arginfo.h
ext/ldap/ldap_arginfo.h
ext/libxml/libxml_arginfo.h
ext/mbstring/mbstring_arginfo.h
ext/mysqli/mysqli_arginfo.h
ext/odbc/odbc_arginfo.h
ext/opcache/opcache_arginfo.h
ext/openssl/openssl_arginfo.h
ext/pcntl/pcntl_arginfo.h
ext/pcre/php_pcre_arginfo.h
ext/pdo/pdo_dbh_arginfo.h
ext/pdo/pdo_stmt_arginfo.h
ext/phar/phar_object_arginfo.h
ext/posix/posix_arginfo.h
ext/pspell/pspell_arginfo.h
ext/readline/readline_arginfo.h
ext/reflection/php_reflection.c
ext/reflection/php_reflection_arginfo.h
ext/reflection/tests/ReflectionClass_toString_001.phpt
ext/reflection/tests/ReflectionParameter_DefaultValueConstant_basic1.phpt
ext/reflection/tests/ReflectionParameter_DefaultValueConstant_basic2.phpt
ext/reflection/tests/ReflectionParameter_DefaultValueConstant_error.phpt
ext/reflection/tests/ReflectionParameter_export_basic.phpt
ext/reflection/tests/ReflectionParameter_getDeclaringFunction_basic.phpt
ext/reflection/tests/internal_parameter_default_value/ReflectionParameter_getDefaultValueConstantName_Internal.phpt [new file with mode: 0644]
ext/reflection/tests/internal_parameter_default_value/ReflectionParameter_getDefaultValue_Internal.phpt [new file with mode: 0644]
ext/reflection/tests/internal_parameter_default_value/ReflectionParameter_isDefaultValueAvailable_Internal.phpt [new file with mode: 0644]
ext/reflection/tests/internal_parameter_default_value/ReflectionParameter_isDefaultValueConstant_Internal.phpt [new file with mode: 0644]
ext/reflection/tests/internal_parameter_default_value/ReflectionParameter_toString_Internal.phpt [new file with mode: 0644]
ext/session/session_arginfo.h
ext/simplexml/simplexml_arginfo.h
ext/skeleton/skeleton_arginfo.h
ext/snmp/snmp_arginfo.h
ext/soap/soap_arginfo.h
ext/sockets/sockets_arginfo.h
ext/sodium/libsodium_arginfo.h
ext/spl/php_spl_arginfo.h
ext/spl/spl_array_arginfo.h
ext/spl/spl_directory_arginfo.h
ext/spl/spl_fixedarray_arginfo.h
ext/spl/spl_iterators_arginfo.h
ext/spl/spl_observer_arginfo.h
ext/spl/tests/bug71412.phpt
ext/sqlite3/sqlite3_arginfo.h
ext/standard/basic_functions_arginfo.h
ext/standard/tests/directory/DirectoryClass_basic_001.phpt
ext/standard/tests/strings/bug61116.phpt
ext/sysvmsg/sysvmsg_arginfo.h
ext/sysvsem/sysvsem_arginfo.h
ext/sysvshm/sysvshm_arginfo.h
ext/tidy/tidy_arginfo.h
ext/tokenizer/tokenizer_arginfo.h
ext/xml/xml_arginfo.h
ext/xmlreader/xmlreader_arginfo.h
ext/xmlrpc/xmlrpc_arginfo.h
ext/xmlwriter/xmlwriter_arginfo.h
ext/xsl/xsltprocessor_arginfo.h
ext/zend_test/test_arginfo.h
ext/zip/php_zip_arginfo.h
ext/zlib/zlib_arginfo.h
sapi/apache2handler/php_functions_arginfo.h
sapi/cli/tests/004.phpt
sapi/cli/tests/005.phpt
sapi/cli/tests/006.phpt
sapi/phpdbg/phpdbg_arginfo.h
scripts/dev/genfiles