Skip to content

Commit da2f6b4

Browse files
committed
Drop includes now provided by the generated arginfo files
Removes the manual zend_attributes.h and zend_enum.h includes from sources that only needed them for the arginfo file they include.
1 parent 5ec5995 commit da2f6b4

29 files changed

Lines changed: 0 additions & 33 deletions

File tree

ext/curl/interface.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
4545
#endif
4646

47-
#include "zend_attributes.h"
4847
#include "curl_arginfo.h"
4948

5049
ZEND_DECLARE_MODULE_GLOBALS(curl)

ext/date/php_date.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "ext/standard/php_versioning.h"
2020
#include "php_date.h"
2121
#include "php_time.h"
22-
#include "zend_attributes.h"
2322
#include "zend_interfaces.h"
2423
#include "zend_exceptions.h"
2524
#include "lib/timelib.h"

ext/dom/php_dom.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
#include "php.h"
2222
#if defined(HAVE_LIBXML) && defined(HAVE_DOM)
23-
#include "zend_enum.h"
24-
#include "zend_attributes.h"
2523
#include "php_dom.h"
2624
#include "obj_map.h"
2725
#include "nodelist.h"

ext/enchant/enchant.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "php.h"
2121
#include "php_ini.h"
2222
#include "ext/standard/info.h"
23-
#include "Zend/zend_attributes.h"
2423
#include "Zend/zend_exceptions.h"
2524
#include <enchant.h>
2625
#include "php_enchant.h"

ext/fileinfo/fileinfo.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#include "php_ini.h"
3030
#include "ext/standard/info.h"
3131
#include "ext/standard/file.h" /* needed for context stuff */
32-
#include "Zend/zend_attributes.h"
3332
#include "Zend/zend_exceptions.h"
3433
#include "php_fileinfo.h"
3534
#include "fileinfo_arginfo.h"

ext/filter/filter.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
ZEND_DECLARE_MODULE_GLOBALS(filter)
2727

28-
#include "zend_attributes.h"
2928
#include "filter_private.h"
3029
#include "filter_arginfo.h"
3130
#include "zend_exceptions.h"

ext/ftp/php_ftp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
#include "ext/standard/info.h"
2929
#include "ext/standard/file.h"
30-
#include "Zend/zend_attributes.h"
3130
#include "Zend/zend_exceptions.h"
3231

3332
#include "php_ftp.h"

ext/gd/gd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include "ext/standard/info.h"
3333
#include "php_open_temporary_file.h"
3434
#include "php_memory_streams.h"
35-
#include "zend_attributes.h"
3635
#include "zend_object_handlers.h"
3736

3837
#ifdef HAVE_SYS_WAIT_H

ext/intl/php_intl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575

7676
#include "php_ini.h"
7777

78-
#include "zend_attributes.h"
7978

8079
#include "php_intl_arginfo.h"
8180

ext/ldap/ldap.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
#include "php.h"
2828
#include "php_ini.h"
29-
#include "Zend/zend_attributes.h"
3029

3130
#include <stddef.h>
3231

0 commit comments

Comments
 (0)