Skip to content

Commit c9b9f52

Browse files
committed
Include stub hash in generated arginfo files
The hash is used to check whether the arginfo file needs to be regenerated. PHP-Parser will only be downloaded if this is actually necessary. This ensures that release artifacts will never try to regenerate stubs and thus fetch PHP-Parser, as long as you do not modify any files. Closes GH-5739.
1 parent d1ebc3a commit c9b9f52

File tree

102 files changed

+250
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+250
-129
lines changed

Zend/zend_builtin_functions_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: dbaaf894f10b6f3c880d08e138dead309f6ed5a4 */
23

34
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_version, 0, 0, IS_STRING, 0)
45
ZEND_END_ARG_INFO()

Zend/zend_closures_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 3352191f3a07009ef853829816a3209156afb0bc */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Closure___construct, 0, 0, 0)
45
ZEND_END_ARG_INFO()

Zend/zend_exceptions_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 7eb20393f4ca314324d9813983124f724189ce8a */
23

34
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Throwable_getMessage, 0, 0, IS_STRING, 0)
45
ZEND_END_ARG_INFO()

Zend/zend_generators_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 18d2bb68729ff622a5c0c124a8822f7ee882c2ec */
23

34
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Generator_rewind, 0, 0, IS_VOID, 0)
45
ZEND_END_ARG_INFO()

Zend/zend_interfaces_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 6ec9a1d6d8035af94bdd4953e47bb18164ee2b59 */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IteratorAggregate_getIterator, 0, 0, 0)
45
ZEND_END_ARG_INFO()

Zend/zend_weakrefs_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 7ce222b1a257fc3d524dc5cd123ac102a0dca2bc */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_WeakReference___construct, 0, 0, 0)
45
ZEND_END_ARG_INFO()

build/gen_stub.php

Lines changed: 48 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,6 @@
1212

1313
error_reporting(E_ALL);
1414

15-
try {
16-
initPhpParser();
17-
} catch (Exception $e) {
18-
echo "{$e->getMessage()}\n";
19-
exit(1);
20-
}
21-
22-
class CustomPrettyPrinter extends Standard
23-
{
24-
protected function pName_FullyQualified(Name\FullyQualified $node) {
25-
return implode('\\', $node->parts);
26-
}
27-
}
28-
2915
function processDirectory(string $dir) {
3016
$it = new RecursiveIteratorIterator(
3117
new RecursiveDirectoryIterator($dir),
@@ -40,18 +26,47 @@ function processDirectory(string $dir) {
4026
}
4127

4228
function processStubFile(string $stubFile) {
43-
$arginfoFile = str_replace('.stub.php', '', $stubFile) . '_arginfo.h';
44-
4529
try {
46-
$fileInfo = parseStubFile($stubFile);
47-
$arginfoCode = generateArgInfoCode($fileInfo);
30+
if (!file_exists($stubFile)) {
31+
throw new Exception("File $stubFile does not exist");
32+
}
33+
34+
$arginfoFile = str_replace('.stub.php', '', $stubFile) . '_arginfo.h';
35+
$stubCode = file_get_contents($stubFile);
36+
$stubHash = computeStubHash($stubCode);
37+
$oldStubHash = extractStubHash($arginfoFile);
38+
if ($stubHash === $oldStubHash) {
39+
/* Stub file did not change, do not regenerate. */
40+
return;
41+
}
42+
43+
initPhpParser();
44+
$fileInfo = parseStubFile($stubCode);
45+
$arginfoCode = generateArgInfoCode($fileInfo, $stubHash);
4846
file_put_contents($arginfoFile, $arginfoCode);
4947
} catch (Exception $e) {
5048
echo "In $stubFile:\n{$e->getMessage()}\n";
5149
exit(1);
5250
}
5351
}
5452

53+
function computeStubHash(string $stubCode): string {
54+
return sha1(str_replace("\r\n", "\n", $stubCode));
55+
}
56+
57+
function extractStubHash(string $arginfoFile): ?string {
58+
if (!file_exists($arginfoFile)) {
59+
return null;
60+
}
61+
62+
$arginfoCode = file_get_contents($arginfoFile);
63+
if (!preg_match('/\* Stub hash: ([0-9a-f]+) \*/', $arginfoCode, $matches)) {
64+
return null;
65+
}
66+
67+
return $matches[1];
68+
}
69+
5570
class SimpleType {
5671
/** @var string */
5772
public $name;
@@ -737,18 +752,16 @@ function getFileDocComment(array $stmts): ?DocComment {
737752
return null;
738753
}
739754

740-
function parseStubFile(string $fileName): FileInfo {
741-
if (!file_exists($fileName)) {
742-
throw new Exception("File $fileName does not exist");
743-
}
744-
745-
$code = file_get_contents($fileName);
746-
755+
function parseStubFile(string $code): FileInfo {
747756
$lexer = new PhpParser\Lexer();
748757
$parser = new PhpParser\Parser\Php7($lexer);
749758
$nodeTraverser = new PhpParser\NodeTraverser;
750759
$nodeTraverser->addVisitor(new PhpParser\NodeVisitor\NameResolver);
751-
$prettyPrinter = new CustomPrettyPrinter();
760+
$prettyPrinter = new class extends Standard {
761+
protected function pName_FullyQualified(Name\FullyQualified $node) {
762+
return implode('\\', $node->parts);
763+
}
764+
};
752765

753766
$stmts = $parser->parse($code);
754767
$nodeTraverser->traverse($stmts);
@@ -948,8 +961,9 @@ function generateCodeWithConditions(
948961
return $code;
949962
}
950963

951-
function generateArgInfoCode(FileInfo $fileInfo): string {
952-
$code = "/* This is a generated file, edit the .stub.php file instead. */\n";
964+
function generateArgInfoCode(FileInfo $fileInfo, string $stubHash): string {
965+
$code = "/* This is a generated file, edit the .stub.php file instead.\n"
966+
. " * Stub hash: $stubHash */\n";
953967
$generatedFuncInfos = [];
954968
$code .= generateCodeWithConditions(
955969
$fileInfo->getAllFuncInfos(), "\n",
@@ -1055,6 +1069,12 @@ function installPhpParser(string $version, string $phpParserDir) {
10551069
}
10561070

10571071
function initPhpParser() {
1072+
static $isInitialized = false;
1073+
if ($isInitialized) {
1074+
return;
1075+
}
1076+
1077+
$isInitialized = true;
10581078
$version = "4.3.0";
10591079
$phpParserDir = __DIR__ . "/PHP-Parser-$version";
10601080
if (!is_dir($phpParserDir)) {

ext/bcmath/bcmath_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: a1e223f29a06a2292a88c0e90e104cb956f80500 */
23

34
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_bcadd, 0, 2, IS_STRING, 0)
45
ZEND_ARG_TYPE_INFO(0, left_operand, IS_STRING, 0)

ext/bz2/bz2_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: a5c534b7cd92619dfa0fdf29bd0a94fcda27f089 */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_bzopen, 0, 0, 2)
45
ZEND_ARG_INFO(0, file)

ext/calendar/calendar_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 1ace9d7ae3e505ae2e14323e21fa6ac0a490896d */
23

34
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_cal_days_in_month, 0, 3, IS_LONG, 0)
45
ZEND_ARG_TYPE_INFO(0, calendar, IS_LONG, 0)

ext/com_dotnet/com_extension_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 965dcbb494d51bb3fd41a2898a1c53d7478fd699 */
23

34
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_variant_set, 0, 2, IS_VOID, 0)
45
ZEND_ARG_OBJ_INFO(0, variant, variant, 0)

ext/com_dotnet/com_persist_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 69de4fb111796d28e92e16630221e2d02817e742 */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_COMPersistHelper___construct, 0, 0, 1)
45
ZEND_ARG_OBJ_INFO(0, com_object, VARIANT, 1)

ext/ctype/ctype_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: a5de84e1cb6919e7dfc69a42b7f05967ebca24c3 */
23

34
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ctype_alnum, 0, 1, _IS_BOOL, 0)
45
ZEND_ARG_INFO(0, text)

ext/curl/curl_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: ca65615cacfe914f3511007fd393169ffededf34 */
23

34
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_close, 0, 1, IS_VOID, 0)
45
ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0)

ext/curl/curl_file_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 2dbca0eed1723e959b2a56d6035239b189f52495 */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_CURLFile___construct, 0, 0, 1)
45
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)

ext/date/php_date_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 51ffecfc0b15a2368719d5a76fa6788b3a36887e */
23

34
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_strtotime, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
45
ZEND_ARG_TYPE_INFO(0, time, IS_STRING, 0)

ext/dba/dba_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 3f28cb0c990d15e6d2f34c40c2f0219b11d2d5e4 */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_dba_popen, 0, 0, 2)
45
ZEND_ARG_INFO(0, path)

ext/dom/php_dom_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: b5bb577aa2608cc62fa56852ab2433ec03c7fc26 */
23

34
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_dom_import_simplexml, 0, 1, DOMElement, 1)
45
ZEND_ARG_TYPE_INFO(0, node, IS_OBJECT, 0)

ext/enchant/enchant_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 5a67e10da7a70552110e807118a33d1d7bb028da */
23

34
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_enchant_broker_init, 0, 0, EnchantBroker, MAY_BE_FALSE)
45
ZEND_END_ARG_INFO()

ext/exif/exif_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 603888c5295306e86fabce6d6f5367376c666cfe */
23

34
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_exif_tagname, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
45
ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)

ext/ffi/ffi_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: e66d306e0dbe08ec3d66935c69ab9e36b9b8165a */
23

34
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_FFI_cdef, 0, 0, FFI, 0)
45
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, code, IS_STRING, 0, "\"\"")

ext/fileinfo/fileinfo_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: b8bfd01bd5a9a181550160e39c50a8cc047f15cd */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_finfo_open, 0, 0, 0)
45
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "FILEINFO_NONE")

ext/filter/filter_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 54d4bb809e05c73a1a16174bce578377f7cd8f31 */
23

34
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_filter_has_var, 0, 2, _IS_BOOL, 0)
45
ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0)

ext/ftp/ftp_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 0bbaf1b0aed026d0ed32274bc1084b363528bb61 */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_ftp_connect, 0, 0, 1)
45
ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)

ext/gd/gd_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: ce2eb70f449197eca39ca5d8c53ee1369577b035 */
23

34
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gd_info, 0, 0, IS_ARRAY, 0)
45
ZEND_END_ARG_INFO()

ext/gettext/gettext_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 29c84ba2a2aa940baec3bd32503fc7c8e67885fe */
23

34
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_textdomain, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
45
ZEND_ARG_TYPE_INFO(0, domain, IS_STRING, 1)

ext/gmp/gmp_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 3f96612dbbeac0ae619461e400e91b3a15e0cd9c */
23

34
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_gmp_init, 0, 1, GMP, MAY_BE_FALSE)
45
ZEND_ARG_INFO(0, number)

ext/hash/hash_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 2972dfa9fbf8c83557614063a68c2f1500fa5955 */
23

34
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_hash, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
45
ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)

ext/iconv/iconv_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 4e26168b04450adf510a4e638184c46757679ac1 */
23

34
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_strlen, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
45
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)

ext/imap/php_imap_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 1105c40befb73bbc51cc9438d53404801338a15c */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_open, 0, 0, 3)
45
ZEND_ARG_TYPE_INFO(0, mailbox, IS_STRING, 0)

ext/intl/breakiterator/breakiterator_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 3e28f27c89a4f03e9d67d78f4103e16128673e27 */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlBreakIterator_createCharacterInstance, 0, 0, 0)
45
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, locale, IS_STRING, 1, "null")

ext/intl/calendar/calendar_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: e9aea4eb45aba216347d3cf821cf5adebc217ba1 */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlCalendar___construct, 0, 0, 0)
45
ZEND_END_ARG_INFO()

ext/intl/collator/collator_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 95fee5001472494653e6a83467c3c0079ea70728 */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Collator___construct, 0, 0, 1)
45
ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)

ext/intl/common/common_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: cf905a693064ae31b6434e84f6c63bf7c9b804a6 */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlIterator_current, 0, 0, 0)
45
ZEND_END_ARG_INFO()

ext/intl/converter/converter_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 3c63c9077f864e122292eef8655489549de9277a */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_UConverter___construct, 0, 0, 0)
45
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, destination_encoding, IS_STRING, 1, "null")

ext/intl/dateformat/dateformat_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 86faf2e51b67db2801ce691d4d24bfdae5feb6fc */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlDateFormatter___construct, 0, 0, 3)
45
ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 1)

ext/intl/formatter/formatter_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 3ff6f141d025bccb37ff597089f00bcc72462627 */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_NumberFormatter___construct, 0, 0, 2)
45
ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)

ext/intl/locale/locale_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: 6d010c8797cbf11f12f13ce37eb8b36633bdbafb */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Locale_getDefault, 0, 0, 0)
45
ZEND_END_ARG_INFO()

ext/intl/msgformat/msgformat_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: ffa9513a18a634b034b0490bc712d097dc8d36e8 */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MessageFormatter___construct, 0, 0, 2)
45
ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)

ext/intl/normalizer/normalizer_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* This is a generated file, edit the .stub.php file instead. */
1+
/* This is a generated file, edit the .stub.php file instead.
2+
* Stub hash: a1f54793e243d30e75cefd4f9aea17f1509a9c8d */
23

34
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Normalizer_normalize, 0, 0, 1)
45
ZEND_ARG_TYPE_INFO(0, input, IS_STRING, 0)

0 commit comments

Comments
 (0)