Skip to content

Commit 305b17e

Browse files
committed
Do not include the same stub multiple times
Closes GH-5322
1 parent 17d4e66 commit 305b17e

File tree

105 files changed

+2628
-2303
lines changed

Some content is hidden

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

105 files changed

+2628
-2303
lines changed

Zend/zend_builtin_functions_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ZEND_END_ARG_INFO()
3232

3333
#define arginfo_strncasecmp arginfo_strncmp
3434

35-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_error_reporting, 0, 0, IS_LONG, 1)
35+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_error_reporting, 0, 0, IS_LONG, 0)
3636
ZEND_ARG_INFO(0, new_error_level)
3737
ZEND_END_ARG_INFO()
3838

ext/curl/curl_file.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include "Zend/zend_exceptions.h"
2323
#include "Zend/zend_interfaces.h"
2424
#include "php_curl.h"
25-
#include "curl_arginfo.h"
2625
#include "curl_file_arginfo.h"
2726
#if HAVE_CURL
2827

ext/curl/curl_file.stub.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

3-
class CURLFile {
3+
class CURLFile
4+
{
45
public function __construct(
56
string $filename,
67
string $mimetype = UNKNOWN,

ext/dom/attr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#if HAVE_LIBXML && HAVE_DOM
2525

2626
#include "php_dom.h"
27-
#include "dom_arginfo.h"
27+
#include "attr_arginfo.h"
2828

2929
/*
3030
* class DOMAttr extends DOMNode

ext/dom/attr.stub.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
class DOMAttr
4+
{
5+
public function __construct(string $name, string $value = "") {}
6+
7+
/** @return bool */
8+
public function isId() {}
9+
}

ext/dom/attr_arginfo.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* This is a generated file, edit the .stub.php file instead. */
2+
3+
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMAttr___construct, 0, 0, 1)
4+
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
5+
ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
6+
ZEND_END_ARG_INFO()
7+
8+
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMAttr_isId, 0, 0, 0)
9+
ZEND_END_ARG_INFO()

ext/dom/cdatasection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "php.h"
2323
#if HAVE_LIBXML && HAVE_DOM
2424
#include "php_dom.h"
25-
#include "dom_arginfo.h"
25+
#include "cdatasection_arginfo.h"
2626

2727
/*
2828
* class DOMCdataSection extends DOMText

ext/dom/cdatasection.stub.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
class DOMCdataSection
4+
{
5+
public function __construct(string $value) {}
6+
}

ext/dom/cdatasection_arginfo.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* This is a generated file, edit the .stub.php file instead. */
2+
3+
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMCdataSection___construct, 0, 0, 1)
4+
ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
5+
ZEND_END_ARG_INFO()

ext/dom/characterdata.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "php.h"
2323
#if HAVE_LIBXML && HAVE_DOM
2424
#include "php_dom.h"
25-
#include "dom_arginfo.h"
25+
#include "characterdata_arginfo.h"
2626

2727
/*
2828
* class DOMCharacterData extends DOMNode
@@ -37,10 +37,10 @@ const zend_function_entry php_dom_characterdata_class_functions[] = {
3737
PHP_ME(domcharacterdata, insertData, arginfo_class_DOMCharacterData_insertData, ZEND_ACC_PUBLIC)
3838
PHP_ME(domcharacterdata, deleteData, arginfo_class_DOMCharacterData_deleteData, ZEND_ACC_PUBLIC)
3939
PHP_ME(domcharacterdata, replaceData, arginfo_class_DOMCharacterData_replaceData, ZEND_ACC_PUBLIC)
40-
PHP_ME(domcharacterdata, remove, arginfo_class_DOMChildNode_remove, ZEND_ACC_PUBLIC)
41-
PHP_ME(domcharacterdata, after, arginfo_class_DOMChildNode_after, ZEND_ACC_PUBLIC)
42-
PHP_ME(domcharacterdata, before, arginfo_class_DOMChildNode_before, ZEND_ACC_PUBLIC)
43-
PHP_ME(domcharacterdata, replaceWith, arginfo_class_DOMChildNode_replaceWith, ZEND_ACC_PUBLIC)
40+
PHP_ME(domcharacterdata, remove, arginfo_class_DOMCharacterData_remove, ZEND_ACC_PUBLIC)
41+
PHP_ME(domcharacterdata, after, arginfo_class_DOMCharacterData_after, ZEND_ACC_PUBLIC)
42+
PHP_ME(domcharacterdata, before, arginfo_class_DOMCharacterData_before, ZEND_ACC_PUBLIC)
43+
PHP_ME(domcharacterdata, replaceWith, arginfo_class_DOMCharacterData_replaceWith, ZEND_ACC_PUBLIC)
4444
PHP_FE_END
4545
};
4646

0 commit comments

Comments
 (0)