Peter Kokot
41a3573fcc
Fix GH-9483: Autoconf warnings for newer Autoconf versions
...
Co-authored-by: Levi Morrison <morrison.levi@gmail.com>
2023-07-10 09:25:58 -05:00
SVGAnimate
3483229199
Fix GH-11522: PHP version check fails with '-' separator
...
Remove php version suffix from '-' separator.
Closes GH-11524.
2023-06-27 18:28:04 +02:00
Derick Rethans
717335ec63
Fixed macro generation for variadics, which don't have a default value
2023-03-09 11:39:22 +00:00
Kévin Dunglas
c4c861b01a
make clean: remove ext/opcache/minilua
...
Closes GH-10656.
2023-02-21 21:24:16 +00:00
David Carlier
7f70911cbe
Merge branch 'PHP-8.0' into PHP-8.1
2022-06-03 08:04:58 +01:00
David Carlier
0a47fdf538
Revert "Fix detection of unknown gcc function attributes"
...
This reverts commit 813d942bac
.
2022-06-03 08:04:07 +01:00
David Carlier
ba5efbdf17
Merge branch 'PHP-8.0' into PHP-8.1
2022-06-02 21:11:22 +01:00
Athos Ribeiro
813d942bac
Fix detection of unknown gcc function attributes
...
As described in autoconf-archive upstream [1], from where
`build/ax_gcc_func_attribute.m4` is forked, the old unknown func attr
detection method would throw a false negative anytime an unrelated
warning was raised.
This results in `ax_cv_have_func_attribute_target` being set to `no`
whenever certain compiler Warning flags are switched on. Namely, having
`-Wall` on, which is a default CFLAG for some linux distributions, will
result in
```
warning: ‘bar’ declared ‘static’ but never defined [-Wunused-function]
```
when evaluating support for the `target` function attribute.
With that configuration value set to `no`, the compiled php binaries
will not support x86_64 v3 instructions such as avx2 and sse2, which
should speed up specific tasks ran by PHP.
This issue was originally reported in Ubuntu [2].
[1] http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=commitdiff;h=df0894ad1a8195df67a52108b931e07d708cec9a
[2] 1882279
Closes GH-8483.
2022-06-02 21:09:09 +01:00
Arnaud Le Blanc
f07a08df5c
Fix unregistering ini entries of dynamically loaded extension ( #8435 )
...
Fixes GH-8185
2022-05-06 15:25:44 +02:00
Michael Voříšek
36de002cc6
Verify generated files are up to date in CI
...
Closes GH-8295
2022-04-21 23:25:47 +02:00
Tyson Andre
0fab520ded
Fix zend_register_internal_class_ex alias generation ( #8091 )
...
This wouldn't work for creating aliases in a namespace.
It would create the class alias "MyNS_ClassName" instead of
"MyNS\\ClassName"
2022-02-14 17:58:26 -05:00
Remi Collet
3b463749f5
Fix GH-8059 use $PHP_EXECUTABLE when $PHP not set
2022-02-08 13:53:29 +01:00
Máté Kocsis
62e4ac9439
Add support for custom property links
...
Closes GH-7892
2022-01-07 08:28:26 +01:00
Máté Kocsis
0462719999
Fix class synopsis generation
...
Closes GH-7891
2022-01-06 18:31:21 +01:00
Nikita Popov
53ae2b17f3
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
fix #81656 : GCC-11 silently ignores -R
2021-12-05 21:06:50 +01:00
Michael Wallner
1f38c003d2
fix #81656 : GCC-11 silently ignores -R
...
Closes GH-7688.
2021-12-05 21:06:28 +01:00
Dmitry Stogov
72f8dbb312
Fixed bug #81634 (ZEND_ENABLE_STATIC_TSRMLS_CACHE produces extensionswith the STATIC_TLS flag)
2021-11-24 20:43:30 +03:00
Máté Kocsis
baac970817
Add the --generate-optimizer-info option to the help of gen_stub.php
2021-11-17 10:56:27 +01:00
Nikita Popov
68ca3879d7
Fix generation of property with class union type
...
The generated type was missing the UNION bit. Add a ZEND_TYPE_INIT_UNION
macro to hide the implementation details.
2021-11-15 11:04:48 +01:00
Nikita Popov
dd0ec7a554
Update PHP-Parser version in gen_stub
...
This should address the octal issue encountered in #7610 .
2021-11-03 12:41:26 +01:00
Remi Collet
371a268a0a
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
remove closing bracket in bad place
2021-10-15 16:46:58 +02:00
Remi Collet
9f98bc58c7
remove closing bracket in bad place
2021-10-15 16:46:35 +02:00
Derick Rethans
544aebb102
Merge branch 'PHP-8.0' into PHP-8.1
2021-10-07 17:03:32 +01:00
Derick Rethans
7426b2277d
Merge branch 'PHP-7.4' into PHP-8.0
2021-10-07 17:03:12 +01:00
Derick Rethans
89dfe49321
Bump config.guess/config.sub in all supported branches to support Apple Silicon
2021-10-07 17:02:39 +01:00
Derick Rethans
ec75116744
Merge branch 'PHP-8.0' into PHP-8.1
2021-10-07 17:00:21 +01:00
Derick Rethans
8e61a3e3ac
Merge branch 'PHP-7.4' into PHP-8.0
2021-10-07 16:59:47 +01:00
Derick Rethans
cd0c32e7fb
Bump config.guess/config.sub in all supported branches to support Apple Silicon
2021-10-07 16:59:00 +01:00
Máté Kocsis
8168d312f9
Fix a few more classsynopsis generation issues
...
Closes GH-7480
2021-09-22 23:09:43 +02:00
Máté Kocsis
ea9f943d33
Change gen-stub.php to gen_stub.php in help text
2021-09-12 17:09:56 +02:00
Máté Kocsis
73063db5c8
Fix documentation generation when legacy arginfo is generated
...
When legacy arginfo is generated, all the type info gets lost. Since this task is performed before any other additional functionalities of gen_stub.php (e.g. verification, method synopsis and class synopsis generation), these fail as they would require the missing type information.
The issue is fixed by deep cloning the file info objects (albeit only their affected properties), so that we use those for legacy arginfo generation, leaving the original ones untouched.
2021-09-12 11:42:22 +02:00
Máté Kocsis
4c9892d1e3
Fix class synopsis generation for interfaces
...
We have to generate <ooclass> elements for interfaces (rather than <oointerface>) in a number of places: directly inside the <classsynopsis> element and in the extends list.
2021-09-08 12:23:00 +02:00
Máté Kocsis
f588764292
Improve class synopsis root element generation
...
Besides classrefs, we also have exceptionrefs. Also, the 4th capture group replacement used to be unintentionally duplicated.
2021-09-08 10:40:14 +02:00
Máté Kocsis
4483ecf5a9
Properly escape the default value of string properties and enum cases
2021-09-02 16:53:31 +02:00
Máté Kocsis
edf2947a5d
Remove unused variable from property generation code
2021-08-31 14:44:41 +02:00
Máté Kocsis
39ede67e17
Fix typo in method name in gen_stub.php
2021-08-31 14:43:11 +02:00
Nikita Popov
32d48212ea
Support generating internal enum decl from stubs
2021-08-31 14:19:37 +02:00
Go Kudo
eaac77f4e7
Fix nested namespaced typed property in gen_stub.php ( #7418 )
...
Property escape namespaced class name in property types.
2021-08-31 11:56:39 +02:00
Nikita Popov
52d3af1790
Minor cleanup in gen_stubs
...
Unshare the stmt flag handling code, as this does not always
generalize (e.g. to enum cases, which have no visibility or flags
at all).
2021-08-31 11:44:14 +02:00
Nikita Popov
c1c1822e8c
Fix type hint in gen_stub.php
...
There is no ClassType class, only SimpleType.
[ci skip]
2021-08-31 10:11:15 +02:00
Máté Kocsis
a57b713d66
Fix typo in gen_stub.php
2021-08-30 16:09:10 +02:00
Máté Kocsis
c19e4b9997
Generate optimizer func info from stubs for ext/standard - part 3 ( #7426 )
2021-08-30 15:56:47 +02:00
Máté Kocsis
8e6e9838b0
Add support for generating MAY_BE_ARRAY_OF_REF func info flag ( #7416 )
2021-08-30 13:50:34 +02:00
Nikita Popov
fab1222128
Ensure stub files are processed in predictable order
...
The zend_func_infos.h file was generated in a different order for
me.
2021-08-30 10:28:22 +02:00
dixyes
e4c23fa16b
Add haiku shared objects support in libtool
2021-08-27 16:44:10 +02:00
Derick Rethans
802316301d
Merge branch 'PHP-7.4' into PHP-8.0
2021-08-25 16:00:14 +01:00
Derick Rethans
3677db6386
Backport speling fix
...
This change was originall only done for 'master'. Xdebug bundles this file as
it requires it, but PHP 7.2/7.3 don't have it bundled. By doing "phpize" with
master, it updates the file introducing a local diff. By fixing it in older
versions, that problem goes away.
2021-08-25 15:58:28 +01:00
Peter Cowburn
36e88a0066
Use &Properties; entity in xpointer for inherited properties in class synopses ( #7400 )
...
This changes ClassInfo::createIncludeElement() such that it takes the $query
argument as-is for the xpointer attribute value. Special characters, like
" and &, are used as-is so be careful not to break the resulting XML.
2021-08-25 12:14:03 +02:00
Máté Kocsis
4a7a414735
Fix callable and iterable handling
2021-08-25 10:37:43 +02:00
Máté Kocsis
d0897b3602
Clean up function map production slightly
...
There's no need to iterate over $fileInfos again while generating the class map
2021-08-24 19:30:00 +02:00