Peter Kokot
3ceecaa9a0
Replace HAVE_ST_BLOCKS with HAVE_STRUCT_STAT_ST_BLOCKS
...
Since Autoconf 2.50+ macro AC_STRUCT_ST_BLOCKS defines the new
HAVE_STRUCT_STAT_ST_BLOCKS symbol and has deprecated the previous
HAVE_ST_BLOCKS.
PHP 5.3 required Autoconf 2.13 (released in 1999) or newer, since PHP
5.4 the autoconf 2.59 (released in 2003) or newer was required, and
since PHP 7.2, autoconf 2.64 (released in 2008) or newer is required.
2018-08-24 18:33:23 +02:00
Dmitry Stogov
6136a20544
ZEND_DECLARE_CLASS, ZEND_DECLARE_INHERITED_CLASS and ZEND_DECLARE_INHERITED_CLASS_DELAYED don't need return value anymore.
2018-08-24 15:40:53 +03:00
Dmitry Stogov
b36dbdd1dd
Perform "early-binding" directly during compilation
2018-08-24 15:18:38 +03:00
Dmitry Stogov
8050f4a334
Keep information about unresolved parent class in zend_class_entry->parent_name
2018-08-24 00:20:57 +03:00
Anatol Belski
644bdaf9cd
Merge branch 'PHP-7.3'
...
* PHP-7.3:
mkdist.php: recursively check dll dependencies
2018-08-23 21:28:08 +02:00
Anatol Belski
f15fc8ea1e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
mkdist.php: recursively check dll dependencies
2018-08-23 21:27:43 +02:00
Anatol Belski
8f43ec1e83
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
mkdist.php: recursively check dll dependencies
2018-08-23 21:26:40 +02:00
Dylan K. Taylor
b9bf9ddce6
mkdist.php: recursively check dll dependencies
...
Fix duplication of recursively checked deps
2018-08-23 21:25:54 +02:00
Dmitry Stogov
d140df58e6
Keep information about unresolved interfaces in zend_class_entry->interface_names.
...
Move interface implementation code into ZEND_DECLARE_*CLASS opcodes.
Remove ZEND_ADD_INTERFACE and ZEND_VERIFY_ABSTRACT_CLASS opcodes.
2018-08-23 17:16:28 +03:00
Christoph M. Becker
4bf1d0b3a4
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Simplify regression test
2018-08-23 12:52:31 +02:00
Christoph M. Becker
5fe8e49baa
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Simplify regression test
2018-08-23 12:51:11 +02:00
Christoph M. Becker
1c3d5659bd
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Simplify regression test
2018-08-23 12:49:26 +02:00
Christoph M. Becker
6644bd005f
Simplify regression test
...
There's no need to actually try to trigger an out-of-memory condition
to proof the leak; instead we can simply rely on the Zend MM to report
the memory leaks in debug mode (at least on Linux). Therefore we
simplify the regression test, which also makes it run much faster.
2018-08-23 12:48:09 +02:00
Dmitry Stogov
67397970b2
Replace zend_class_entry->traits by persistent zend_class_entry->trait_names.
...
Move trait binding code into ZEND_DECLARE_*CLASS opcodes.
Remove ZEND_ADD_TRIAIT and ZEND_BIND_TRAITS opcodes.
2018-08-23 02:02:26 +03:00
Dmitry Stogov
92fdf9d629
Change zend_lookup_class_ex() and zend_fetch_class_by_name() prototypes to accept optional lower-case class name as zend_string*, instead of zval*.
2018-08-22 17:07:31 +03:00
Christoph M. Becker
20c4923d5c
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #68825 : Exception in DirectoryIterator::getLinkTarget()
2018-08-22 15:40:26 +02:00
Christoph M. Becker
3278b3347c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #68825 : Exception in DirectoryIterator::getLinkTarget()
2018-08-22 15:40:03 +02:00
Christoph M. Becker
36946f5c45
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #68825 : Exception in DirectoryIterator::getLinkTarget()
2018-08-22 15:38:30 +02:00
Christoph M. Becker
32a728d351
Fix #68825 : Exception in DirectoryIterator::getLinkTarget()
...
intern->file_name may not have been properly set when
DirectoryIterator::getLinkTarget() is called, so we make sure it is
before using it.
2018-08-22 15:37:02 +02:00
Christoph M. Becker
4b5d26596a
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Increase memory_limit to prevent test failures
2018-08-22 14:32:04 +02:00
Christoph M. Becker
6cf382b667
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Increase memory_limit to prevent test failures
2018-08-22 14:31:36 +02:00
Christoph M. Becker
10661e28d1
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Increase memory_limit to prevent test failures
2018-08-22 14:30:23 +02:00
Christoph M. Becker
5fb01a3a42
Increase memory_limit to prevent test failures
2018-08-22 14:29:28 +02:00
Christoph M. Becker
1f698e0f94
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #76773 - Methods with a concrete scope need to be added again
2018-08-22 14:08:46 +02:00
Chris Wright
9ace33b9c5
Fix #76773 - Methods with a concrete scope need to be added again
2018-08-22 14:08:15 +02:00
Christoph M. Becker
d1ff6c3a4e
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #76767 : ‘asm’ operand has impossible constraints in zend_operators.h
2018-08-22 13:57:44 +02:00
Ondřej Surý
02b0bc8bb1
Fix #76767 : ‘asm’ operand has impossible constraints in zend_operators.h
...
We disable assembly code with gcc 4.8 on i386.
2018-08-22 13:57:21 +02:00
Christoph M. Becker
5aac8fdbfc
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fix #76778 : array_reduce leaks memory if callback throws exception
2018-08-22 13:51:55 +02:00
Christoph M. Becker
1de17428f6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #76778 : array_reduce leaks memory if callback throws exception
2018-08-22 13:51:16 +02:00
Christoph M. Becker
cdd9eb8c4a
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #76778 : array_reduce leaks memory if callback throws exception
2018-08-22 13:49:35 +02:00
Nikita Popov
1ff3b5dd75
Merge branch 'PHP-7.3'
2018-08-22 13:43:52 +02:00
Nikita Popov
dd07f17f97
Merge branch 'PHP-7.2' into PHP-7.3
2018-08-22 13:43:23 +02:00
Christoph M. Becker
70b2fca220
Fix #76778 : array_reduce leaks memory if callback throws exception
...
We have to release the result variable in the error case, too.
2018-08-22 13:40:24 +02:00
Massimiliano Braglia
2527a0fcfd
Fixed bug #75797
...
Fix zend_register_class_alias_ex() to use non-persistent strings
for (non-persistent) userland classes.
2018-08-22 13:39:08 +02:00
Dmitry Stogov
93f9ee7217
Use zend_class_entry/zend_function type names instead of _zend_class_entry/_zend_function tags.
2018-08-22 14:01:14 +03:00
Christoph M. Becker
6c4528e444
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #76777 and added test
2018-08-22 12:55:17 +02:00
Christoph M. Becker
138671f2f4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #76777 and added test
2018-08-22 12:54:39 +02:00
Christoph M. Becker
7ad0595712
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76777 and added test
2018-08-22 12:52:41 +02:00
Ville Hukkamaki
cf2fc66b02
Fixed bug #76777 and added test
...
Set undefined values to null rather than undefined.
2018-08-22 12:51:06 +02:00
Dmitry Stogov
fc8d6b6797
Introduced ZEND_COMPILE_IGNORE_OTHER_FILES compiler option, to allow "separate" file compilation (unaffected but previously compiled files), without CG(function_table)/CG(class_table) manipulation.
2018-08-22 13:45:56 +03:00
Nikita Popov
850b53df0e
Unify unpack checking in compile_special_func()
...
Instead of handling this separately for each specialized function,
do one check directly in zend_compile_special_func().
2018-08-22 11:38:28 +02:00
Nikita Popov
406b57ed01
Merge branch 'PHP-7.3'
2018-08-22 11:22:23 +02:00
David Carlier
446b5b15d3
Don't report mmap failure if it is expected
...
When using mmap with MAP_FIXED_NOREPLACE or MAP_FIXED|MAP_EXCL
an mmap failure is not an error condition, so do not print an
error message in this case.
2018-08-22 11:19:52 +02:00
Dmitry Stogov
1321aa5080
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Stop using zend_function->reserved[] space.
2018-08-22 10:44:34 +03:00
Dmitry Stogov
8d95f561e4
Stop using zend_function->reserved[] space.
2018-08-22 10:43:51 +03:00
Dmitry Stogov
e3bbfbe6a2
Removed op_array->static_variables duplication code. They can't be "shared" during comilation.
2018-08-22 08:24:28 +03:00
Nikita Popov
045b74c12c
Drop dead code
...
var_ast is always a ZEND_AST_ZVAL.
2018-08-21 13:43:29 +02:00
Dmitry Stogov
168376e98e
Cleanup
2018-08-21 13:21:56 +03:00
Dmitry Stogov
6d88e1ccd6
Don't use second operand of BIND_STATIC instruction.
2018-08-21 12:22:04 +03:00
Nikita Popov
09b4b83753
Merge branch 'PHP-7.3'
2018-08-21 08:34:15 +02:00