Dmitry Stogov
0424ce0c15
Avoid redundand repeatable VM stack overflow checks
2021-08-26 16:50:29 +03:00
Máté Kocsis
5e424d2884
Fix a few ext/date return types
2021-08-26 15:26:13 +02:00
Nikita Popov
93a88a1d4c
Limit internal function args during fuzzing
...
Restrict the size of string arguments in the hope of avoiding some
very common timeouts with pcre. If this doesn't work, the functions
need to be disabled entirely.
2021-08-26 15:08:23 +02:00
Nikita Popov
cae80ef552
Limit internal function calls in execute fuzzer
...
Infinite recursion might occur purely through internal functions,
without reentering the executor.
2021-08-26 14:42:45 +02:00
Nikita Popov
fa032764db
Initialize method_lcname to suppress maybe-uninitialized warning
2021-08-26 14:15:39 +02:00
Máté Kocsis
267c24e9ee
Update property read handler comments for DOMEntity
2021-08-26 13:15:24 +02:00
Nikita Popov
6434c93a27
Explicitly store real map ptr base
...
If we only store the biased pointer, the map ptr region will not
be recognized as reachable memory by leak checkers. This is
primarily problematic for fuzzing, because this is persistent
memory that may be reallocated during the request, without being
an actual leak.
Avoid this by simply storing both the real base pointer of the
allocation, as well as the biased base pointer used for accesses.
2021-08-26 12:29:44 +02:00
Máté Kocsis
9cd6c57ad1
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Sync ext/mysqli optimizer func info entries with the stubs
2021-08-26 12:14:21 +02:00
Máté Kocsis
780293baec
Sync ext/mysqli optimizer func info entries with the stubs
2021-08-26 12:13:42 +02:00
Nikita Popov
b964d007e3
Fix AST print of first class callable in anon class expr
...
This will cause a compile error later, but the expression is
printed first.
Fixes oss-fuzz #37473 .
2021-08-26 12:00:37 +02:00
Nikita Popov
07984435ae
Mark private compiler functions as static
2021-08-26 11:29:44 +02:00
Máté Kocsis
765aec8623
Generate optimizer func info from stubs for ext/sodium ( #7404 )
2021-08-26 10:44:38 +02:00
Máté Kocsis
25cbd08470
Make a few unuseful DOMEntity properties readonly ( #7406 )
2021-08-26 10:37:45 +02:00
Máté Kocsis
2d248c80b9
Generate optimizer func info from stubs for ext/date ( #7403 )
2021-08-25 21:29:46 +02:00
Derick Rethans
0f3d4b58c6
Merge branch 'PHP-8.0'
2021-08-25 16:00:23 +01: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
Máté Kocsis
50f31829b1
Generate optimizer func info from stubs for a few extensions - part 2 ( #7401 )
...
ext/bcmath, ext/fileinfo, ext/filter, ext/gettext, ext/session
2021-08-25 15:29:46 +02:00
Dmitry Stogov
1c9f8eb7b9
JIT/x86: Merge load and test of EX_CALL_INFO() into single instruction
2021-08-25 14:36:06 +03: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
K
e89048aea7
Use FastZPP for SQLite3Stmt/SQLite3Result ( #7392 )
2021-08-25 10:44:25 +02:00
Máté Kocsis
d379044066
Generate a few missing optimizer function entries from stubs
2021-08-25 10:37:43 +02:00
Máté Kocsis
4a7a414735
Fix callable and iterable handling
2021-08-25 10:37:43 +02:00
Máté Kocsis
bdfe0ab505
Generate Zend, ext/spl and ext/json optimizer func info from stubs
...
Closes GH-7397
2021-08-25 10:37:27 +02:00
Ikko Ashimine
6e5771148d
Fix typo in file.c
...
apostrohpe -> apostrophe
2021-08-25 09:51:32 +02:00
Máté Kocsis
cdf2f3eb16
DOMCharacterData::$data and DOMAttr::$value are writable
2021-08-25 09:25:22 +02:00
Nikita Popov
2dafb0e30f
Add comments to grouped character properties
...
[ci skip]
2021-08-24 22:09:26 +02:00
Dmitry Stogov
c5ded13614
JIT: Code generation for ROPE_INIT, ROPE_ADD and ROPE_END with STRING operands
2021-08-24 21:45:14 +03:00
Nikita Popov
425c2e3ba1
Combine control into one character group
...
Same as with punct, we're currently not interested in distinguishing
between Cc and Cf, so only store their union.
2021-08-24 20:39:16 +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
Nikita Popov
f458b16041
Combine punctuation into one character group
...
We're not currently interested in distinguishing between
individual punctuation types, so just merge everything into one
general category to make the property lookup more efficient.
2021-08-24 19:21:21 +02:00
Nikita Popov
d2073179e3
Return bool from php_unicode_is_prop()
2021-08-24 19:21:21 +02:00
Máté Kocsis
e35a7fe919
Fix function map production
2021-08-24 18:45:31 +02:00
Máté Kocsis
2141bee69d
Add more specific array type hints
2021-08-24 18:40:36 +02:00
Máté Kocsis
b1822899fc
Add support for generating optimizer function info from stubs ( #7367 )
2021-08-24 16:35:33 +02:00
Nikita Popov
3be94217f4
Don't use sentinel value for unicode property lookup
...
0xffff was used to mark character properties without any members.
This made the code unnecessarily complicated, because we need to
check for 0xffff values when looking up the property ranges. We
can simply encode this as an empty set of ranges.
2021-08-24 15:53:43 +02:00
Máté Kocsis
58fcded8ec
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fix a few optimizer func info
2021-08-24 15:21:27 +02:00
Máté Kocsis
41ab369791
Fix a few optimizer func info
...
Closes GH-7396
2021-08-24 15:12:18 +02:00
Nikita Popov
a40ccd758c
Fixed bug #81377
...
BP_VAR_UNSET should not result in undefined warnings.
2021-08-24 15:05:53 +02:00
Christoph M. Becker
be5078647e
Merge branch 'PHP-8.0'
...
* PHP-8.0:
7.3.31 is next
2021-08-24 12:53:51 +02:00
Christoph M. Becker
ddd21d1e63
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
7.3.31 is next
2021-08-24 12:52:36 +02:00
Christoph M. Becker
5337229a50
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
7.3.31 is next
2021-08-24 12:51:06 +02:00
Christoph M. Becker
521bd7ce15
7.3.31 is next
2021-08-24 12:47:21 +02:00
Máté Kocsis
b4b980e6ad
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Declare a few missing function return types
2021-08-24 11:43:31 +02:00
Máté Kocsis
c58a9f2a57
Declare a few missing function return types
...
Closes GH-7395
2021-08-24 11:38:50 +02:00
Stanislav Malyshev
1fefd482f4
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fix test
2021-08-23 23:44:06 -07:00
Stanislav Malyshev
ffcf5ba4ae
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix test
2021-08-23 23:43:58 -07:00
Stanislav Malyshev
c1f427b506
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix test
2021-08-23 23:43:51 -07:00
Stanislav Malyshev
b815645aac
Fix test
2021-08-23 23:43:32 -07:00
Stanislav Malyshev
18ebe1588d
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Update NEWS
Fix #81211 : Symlinks are followed when creating PHAR archive
2021-08-23 23:31:00 -07:00