Skip to content

Include stub hash in generated arginfo files #5739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Zend/zend_builtin_functions_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: dbaaf894f10b6f3c880d08e138dead309f6ed5a4 */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_version, 0, 0, IS_STRING, 0)
ZEND_END_ARG_INFO()
Expand Down
3 changes: 2 additions & 1 deletion Zend/zend_closures_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 3352191f3a07009ef853829816a3209156afb0bc */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Closure___construct, 0, 0, 0)
ZEND_END_ARG_INFO()
Expand Down
3 changes: 2 additions & 1 deletion Zend/zend_exceptions_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 7eb20393f4ca314324d9813983124f724189ce8a */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Throwable_getMessage, 0, 0, IS_STRING, 0)
ZEND_END_ARG_INFO()
Expand Down
3 changes: 2 additions & 1 deletion Zend/zend_generators_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 18d2bb68729ff622a5c0c124a8822f7ee882c2ec */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Generator_rewind, 0, 0, IS_VOID, 0)
ZEND_END_ARG_INFO()
Expand Down
3 changes: 2 additions & 1 deletion Zend/zend_interfaces_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 6ec9a1d6d8035af94bdd4953e47bb18164ee2b59 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IteratorAggregate_getIterator, 0, 0, 0)
ZEND_END_ARG_INFO()
Expand Down
3 changes: 2 additions & 1 deletion Zend/zend_weakrefs_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 7ce222b1a257fc3d524dc5cd123ac102a0dca2bc */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_WeakReference___construct, 0, 0, 0)
ZEND_END_ARG_INFO()
Expand Down
76 changes: 48 additions & 28 deletions build/gen_stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,6 @@

error_reporting(E_ALL);

try {
initPhpParser();
} catch (Exception $e) {
echo "{$e->getMessage()}\n";
exit(1);
}

class CustomPrettyPrinter extends Standard
{
protected function pName_FullyQualified(Name\FullyQualified $node) {
return implode('\\', $node->parts);
}
}

function processDirectory(string $dir) {
$it = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($dir),
Expand All @@ -40,18 +26,47 @@ function processDirectory(string $dir) {
}

function processStubFile(string $stubFile) {
$arginfoFile = str_replace('.stub.php', '', $stubFile) . '_arginfo.h';

try {
$fileInfo = parseStubFile($stubFile);
$arginfoCode = generateArgInfoCode($fileInfo);
if (!file_exists($stubFile)) {
throw new Exception("File $stubFile does not exist");
}

$arginfoFile = str_replace('.stub.php', '', $stubFile) . '_arginfo.h';
$stubCode = file_get_contents($stubFile);
$stubHash = computeStubHash($stubCode);
$oldStubHash = extractStubHash($arginfoFile);
if ($stubHash === $oldStubHash) {
/* Stub file did not change, do not regenerate. */
return;
}

initPhpParser();
$fileInfo = parseStubFile($stubCode);
$arginfoCode = generateArgInfoCode($fileInfo, $stubHash);
file_put_contents($arginfoFile, $arginfoCode);
} catch (Exception $e) {
echo "In $stubFile:\n{$e->getMessage()}\n";
exit(1);
}
}

function computeStubHash(string $stubCode): string {
return sha1(str_replace("\r\n", "\n", $stubCode));
}

function extractStubHash(string $arginfoFile): ?string {
if (!file_exists($arginfoFile)) {
return null;
}

$arginfoCode = file_get_contents($arginfoFile);
if (!preg_match('/\* Stub hash: ([0-9a-f]+) \*/', $arginfoCode, $matches)) {
return null;
}

return $matches[1];
}

class SimpleType {
/** @var string */
public $name;
Expand Down Expand Up @@ -737,18 +752,16 @@ function getFileDocComment(array $stmts): ?DocComment {
return null;
}

function parseStubFile(string $fileName): FileInfo {
if (!file_exists($fileName)) {
throw new Exception("File $fileName does not exist");
}

$code = file_get_contents($fileName);

function parseStubFile(string $code): FileInfo {
$lexer = new PhpParser\Lexer();
$parser = new PhpParser\Parser\Php7($lexer);
$nodeTraverser = new PhpParser\NodeTraverser;
$nodeTraverser->addVisitor(new PhpParser\NodeVisitor\NameResolver);
$prettyPrinter = new CustomPrettyPrinter();
$prettyPrinter = new class extends Standard {
protected function pName_FullyQualified(Name\FullyQualified $node) {
return implode('\\', $node->parts);
}
};

$stmts = $parser->parse($code);
$nodeTraverser->traverse($stmts);
Expand Down Expand Up @@ -948,8 +961,9 @@ function generateCodeWithConditions(
return $code;
}

function generateArgInfoCode(FileInfo $fileInfo): string {
$code = "/* This is a generated file, edit the .stub.php file instead. */\n";
function generateArgInfoCode(FileInfo $fileInfo, string $stubHash): string {
$code = "/* This is a generated file, edit the .stub.php file instead.\n"
. " * Stub hash: $stubHash */\n";
$generatedFuncInfos = [];
$code .= generateCodeWithConditions(
$fileInfo->getAllFuncInfos(), "\n",
Expand Down Expand Up @@ -1055,6 +1069,12 @@ function installPhpParser(string $version, string $phpParserDir) {
}

function initPhpParser() {
static $isInitialized = false;
if ($isInitialized) {
return;
}

$isInitialized = true;
$version = "4.3.0";
$phpParserDir = __DIR__ . "/PHP-Parser-$version";
if (!is_dir($phpParserDir)) {
Expand Down
3 changes: 2 additions & 1 deletion ext/bcmath/bcmath_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: fdb979c2ac2a6af1f95b3a1d9e346542ba3510c6 */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_bcadd, 0, 2, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, left_operand, IS_STRING, 0)
Expand Down
3 changes: 2 additions & 1 deletion ext/bz2/bz2_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: a5c534b7cd92619dfa0fdf29bd0a94fcda27f089 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_bzopen, 0, 0, 2)
ZEND_ARG_INFO(0, file)
Expand Down
3 changes: 2 additions & 1 deletion ext/calendar/calendar_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 1ace9d7ae3e505ae2e14323e21fa6ac0a490896d */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_cal_days_in_month, 0, 3, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, calendar, IS_LONG, 0)
Expand Down
3 changes: 2 additions & 1 deletion ext/com_dotnet/com_extension_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 965dcbb494d51bb3fd41a2898a1c53d7478fd699 */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_variant_set, 0, 2, IS_VOID, 0)
ZEND_ARG_OBJ_INFO(0, variant, variant, 0)
Expand Down
3 changes: 2 additions & 1 deletion ext/com_dotnet/com_persist_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 69de4fb111796d28e92e16630221e2d02817e742 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_COMPersistHelper___construct, 0, 0, 1)
ZEND_ARG_OBJ_INFO(0, com_object, VARIANT, 1)
Expand Down
3 changes: 2 additions & 1 deletion ext/ctype/ctype_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: a5de84e1cb6919e7dfc69a42b7f05967ebca24c3 */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ctype_alnum, 0, 1, _IS_BOOL, 0)
ZEND_ARG_INFO(0, text)
Expand Down
3 changes: 2 additions & 1 deletion ext/curl/curl_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: ca65615cacfe914f3511007fd393169ffededf34 */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_close, 0, 1, IS_VOID, 0)
ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0)
Expand Down
3 changes: 2 additions & 1 deletion ext/curl/curl_file_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 2dbca0eed1723e959b2a56d6035239b189f52495 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_CURLFile___construct, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
Expand Down
3 changes: 2 additions & 1 deletion ext/date/php_date_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 51ffecfc0b15a2368719d5a76fa6788b3a36887e */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_strtotime, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, time, IS_STRING, 0)
Expand Down
3 changes: 2 additions & 1 deletion ext/dba/dba_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 3f28cb0c990d15e6d2f34c40c2f0219b11d2d5e4 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_dba_popen, 0, 0, 2)
ZEND_ARG_INFO(0, path)
Expand Down
3 changes: 2 additions & 1 deletion ext/dom/php_dom_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: b5bb577aa2608cc62fa56852ab2433ec03c7fc26 */

ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_dom_import_simplexml, 0, 1, DOMElement, 1)
ZEND_ARG_TYPE_INFO(0, node, IS_OBJECT, 0)
Expand Down
3 changes: 2 additions & 1 deletion ext/enchant/enchant_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 65da3b4a7601186c5680829d2f193c730fa9ca9f */

ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_enchant_broker_init, 0, 0, EnchantBroker, MAY_BE_FALSE)
ZEND_END_ARG_INFO()
Expand Down
3 changes: 2 additions & 1 deletion ext/exif/exif_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 603888c5295306e86fabce6d6f5367376c666cfe */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_exif_tagname, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
Expand Down
3 changes: 2 additions & 1 deletion ext/ffi/ffi_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: e66d306e0dbe08ec3d66935c69ab9e36b9b8165a */

ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_FFI_cdef, 0, 0, FFI, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, code, IS_STRING, 0, "\"\"")
Expand Down
3 changes: 2 additions & 1 deletion ext/fileinfo/fileinfo_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: b8bfd01bd5a9a181550160e39c50a8cc047f15cd */

ZEND_BEGIN_ARG_INFO_EX(arginfo_finfo_open, 0, 0, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "FILEINFO_NONE")
Expand Down
3 changes: 2 additions & 1 deletion ext/filter/filter_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 54d4bb809e05c73a1a16174bce578377f7cd8f31 */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_filter_has_var, 0, 2, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0)
Expand Down
3 changes: 2 additions & 1 deletion ext/ftp/ftp_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 0bbaf1b0aed026d0ed32274bc1084b363528bb61 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_ftp_connect, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)
Expand Down
3 changes: 2 additions & 1 deletion ext/gd/gd_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: ce2eb70f449197eca39ca5d8c53ee1369577b035 */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gd_info, 0, 0, IS_ARRAY, 0)
ZEND_END_ARG_INFO()
Expand Down
3 changes: 2 additions & 1 deletion ext/gettext/gettext_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 29c84ba2a2aa940baec3bd32503fc7c8e67885fe */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_textdomain, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, domain, IS_STRING, 1)
Expand Down
3 changes: 2 additions & 1 deletion ext/gmp/gmp_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 3f96612dbbeac0ae619461e400e91b3a15e0cd9c */

ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_gmp_init, 0, 1, GMP, MAY_BE_FALSE)
ZEND_ARG_INFO(0, number)
Expand Down
3 changes: 2 additions & 1 deletion ext/hash/hash_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 2972dfa9fbf8c83557614063a68c2f1500fa5955 */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_hash, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
Expand Down
3 changes: 2 additions & 1 deletion ext/iconv/iconv_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 4e26168b04450adf510a4e638184c46757679ac1 */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_strlen, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
Expand Down
3 changes: 2 additions & 1 deletion ext/imap/php_imap_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 1105c40befb73bbc51cc9438d53404801338a15c */

ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_open, 0, 0, 3)
ZEND_ARG_TYPE_INFO(0, mailbox, IS_STRING, 0)
Expand Down
3 changes: 2 additions & 1 deletion ext/intl/breakiterator/breakiterator_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 3e28f27c89a4f03e9d67d78f4103e16128673e27 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlBreakIterator_createCharacterInstance, 0, 0, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, locale, IS_STRING, 1, "null")
Expand Down
3 changes: 2 additions & 1 deletion ext/intl/calendar/calendar_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: e9aea4eb45aba216347d3cf821cf5adebc217ba1 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlCalendar___construct, 0, 0, 0)
ZEND_END_ARG_INFO()
Expand Down
3 changes: 2 additions & 1 deletion ext/intl/collator/collator_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 95fee5001472494653e6a83467c3c0079ea70728 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Collator___construct, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
Expand Down
3 changes: 2 additions & 1 deletion ext/intl/common/common_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: cf905a693064ae31b6434e84f6c63bf7c9b804a6 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlIterator_current, 0, 0, 0)
ZEND_END_ARG_INFO()
Expand Down
3 changes: 2 additions & 1 deletion ext/intl/converter/converter_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 3c63c9077f864e122292eef8655489549de9277a */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_UConverter___construct, 0, 0, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, destination_encoding, IS_STRING, 1, "null")
Expand Down
3 changes: 2 additions & 1 deletion ext/intl/dateformat/dateformat_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 86faf2e51b67db2801ce691d4d24bfdae5feb6fc */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlDateFormatter___construct, 0, 0, 3)
ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 1)
Expand Down
3 changes: 2 additions & 1 deletion ext/intl/formatter/formatter_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 3ff6f141d025bccb37ff597089f00bcc72462627 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_NumberFormatter___construct, 0, 0, 2)
ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
Expand Down
3 changes: 2 additions & 1 deletion ext/intl/locale/locale_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 6d010c8797cbf11f12f13ce37eb8b36633bdbafb */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Locale_getDefault, 0, 0, 0)
ZEND_END_ARG_INFO()
Expand Down
3 changes: 2 additions & 1 deletion ext/intl/msgformat/msgformat_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: ffa9513a18a634b034b0490bc712d097dc8d36e8 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MessageFormatter___construct, 0, 0, 2)
ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
Expand Down
3 changes: 2 additions & 1 deletion ext/intl/normalizer/normalizer_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. */
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: a1f54793e243d30e75cefd4f9aea17f1509a9c8d */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Normalizer_normalize, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, input, IS_STRING, 0)
Expand Down
Loading