History log of /php-src/ (Results 376 – 400 of 114289)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
7f6ad37e22-Oct-2024 Peter Kokot

Sync exif and mbstring INI settings (#16549)

A follow-up of 9ee9c0e6748157198d0180920454bc203ee439a5.

The mbstring extension is added as ZEND_MOD_OPTIONAL dependency at
runtime,

Sync exif and mbstring INI settings (#16549)

A follow-up of 9ee9c0e6748157198d0180920454bc203ee439a5.

The mbstring extension is added as ZEND_MOD_OPTIONAL dependency at
runtime, so INI directives configuration order here is no longer
relevant and can be done in any way.

show more ...

96ac2c4222-Oct-2024 Arnaud Le Blanc

Merge branch 'PHP-8.4'

* PHP-8.4:
Lazy objects: Update class constants earlier


64081d1311-Sep-2024 Arnaud Le Blanc

Lazy objects: Update class constants earlier

If a lazy object is created for a class whose constants can not be updated, then
we have created an instance of a non-instantiable class. Thi

Lazy objects: Update class constants earlier

If a lazy object is created for a class whose constants can not be updated, then
we have created an instance of a non-instantiable class. This breaks the
expectations of clone.

Here I ensure that a class has its constants updated before creating a lazy
instance of it.

Fixes OSS-Fuzz #71407
Closes GH-15856

show more ...

8143eca422-Oct-2024 Gina Peter Banyard

ext/standard: Change return value of array_multisort() to true (#16520)

It stopped being able to return false since PHP 8.0 when all warnings and false returns were converted to ValueErrors

ext/standard: Change return value of array_multisort() to true (#16520)

It stopped being able to return false since PHP 8.0 when all warnings and false returns were converted to ValueErrors and TypeErrors

show more ...

935fef2922-Oct-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Optimize DOM HTML serialization for UTF-8 (#16376)

* Use a direct call for decoding the UTF-8 buffer

* Add fast path for UTF-8 HTML serialization

This patch adds a fast pat

Optimize DOM HTML serialization for UTF-8 (#16376)

* Use a direct call for decoding the UTF-8 buffer

* Add fast path for UTF-8 HTML serialization

This patch adds a fast path to the HTML serialization encoding that has
to encode to UTF-8. Because the DOM internally represents all strings
using UTF-8, we only need to validate here.

Tested on Wikipedia English home page on an i7-4790:
```
Benchmark 1: ./sapi/cli/php x.php
Time (mean ± σ): 516.0 ms ± 6.4 ms [User: 511.2 ms, System: 3.5 ms]
Range (min … max): 506.0 ms … 527.1 ms 10 runs

Benchmark 2: ./sapi/cli/php_old x.php
Time (mean ± σ): 682.8 ms ± 6.5 ms [User: 676.8 ms, System: 3.8 ms]
Range (min … max): 675.8 ms … 695.6 ms 10 runs

Summary
./sapi/cli/php x.php ran
1.32 ± 0.02 times faster than ./sapi/cli/php_old x.php
```

(And if you're interested: it takes over a second on my machine using the old DOMDocument class)

Future optimizations are certainly possible, but let's start here.

show more ...

6dd67bbb21-Oct-2024 Christoph M. Becker

Merge branch 'PHP-8.4'

* PHP-8.4:
Updates for libxml2 >= 2.13.0


30dd291621-Oct-2024 Christoph M. Becker

Updates for libxml2 >= 2.13.0

libxml2 2.13.0 introduced some relevant changes regarding the treatment
of file paths on Windows[1]. Thus we un-xfail bug69753.phpt and its
companion,

Updates for libxml2 >= 2.13.0

libxml2 2.13.0 introduced some relevant changes regarding the treatment
of file paths on Windows[1]. Thus we un-xfail bug69753.phpt and its
companion, and we adjust dom004.phpt. And we also disable the
workaround for erroneous file:/ URIs on Windows.

[1] <https://gitlab.gnome.org/GNOME/libxml2/-/commit/8ab1b122c47bfced2b59f52351507ebc1eb50218>

Closes GH-16536.

show more ...

4214d78821-Oct-2024 Christoph M. Becker

Merge branch 'PHP-8.4'

* PHP-8.4:
Fix GH-16523: FILTER_FLAG_HOSTNAME accepts ending hyphen


6715860221-Oct-2024 Christoph M. Becker

Merge branch 'PHP-8.3' into PHP-8.4

* PHP-8.3:
Fix GH-16523: FILTER_FLAG_HOSTNAME accepts ending hyphen


7930867e21-Oct-2024 Christoph M. Becker

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
Fix GH-16523: FILTER_FLAG_HOSTNAME accepts ending hyphen


f9ce5e7921-Oct-2024 Christoph M. Becker

Fix GH-16523: FILTER_FLAG_HOSTNAME accepts ending hyphen

Domain name labels must not end with a hyphen, and that is also true
for the last label. Apparently, this has been overlooked so

Fix GH-16523: FILTER_FLAG_HOSTNAME accepts ending hyphen

Domain name labels must not end with a hyphen, and that is also true
for the last label. Apparently, this has been overlooked so far.

Closes GH-16540.

show more ...

7c6c8e1121-Oct-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Merge branch 'PHP-8.4'

* PHP-8.4:
Fix GH-16535: UAF when using document as a child
Fix GH-16533: Segfault when adding attribute to parent that is not an element


a026692021-Oct-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Merge branch 'PHP-8.3' into PHP-8.4

* PHP-8.3:
Fix GH-16535: UAF when using document as a child
Fix GH-16533: Segfault when adding attribute to parent that is not an element


5a09e01021-Oct-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
Fix GH-16535: UAF when using document as a child
Fix GH-16533: Segfault when adding attribute to parent that is not an element


51b642f221-Oct-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-16535: UAF when using document as a child

Documents can never be children of any node.

Closes GH-16539.

a0a7361b21-Oct-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-16533: Segfault when adding attribute to parent that is not an element

Attributes are only valid as children of elements. This bug goes back
all the way.

Closes GH-16537.

50acf5eb21-Oct-2024 Christoph M. Becker

Merge branch 'PHP-8.4'

* PHP-8.4:
Fix GH-16266: _ZendTestClass::test() segfaults on named parameter


241e3e0e21-Oct-2024 Christoph M. Becker

Merge branch 'PHP-8.3' into PHP-8.4

* PHP-8.3:
Fix GH-16266: _ZendTestClass::test() segfaults on named parameter


713c71ad21-Oct-2024 Christoph M. Becker

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
Fix GH-16266: _ZendTestClass::test() segfaults on named parameter


b73bcaa421-Oct-2024 Christoph M. Becker

Fix GH-16266: _ZendTestClass::test() segfaults on named parameter

We need to assign the proper number of arguments.

Closes GH-16271.

65f8857321-Oct-2024 Christoph M. Becker

Drop useless retrieval of opened_path (GH-16522)

There is no point in retrieving the real path, if we don't use it.

eef3e5eb21-Oct-2024 Dmitry Stogov

Merge branch 'PHP-8.4'

* PHP-8.4:
Fix GH-16499: [JIT] Undefined to null coercion issues for return


cfd954f521-Oct-2024 Dmitry Stogov

Merge branch 'PHP-8.3' into PHP-8.4

* PHP-8.3:
Fix GH-16499: [JIT] Undefined to null coercion issues for return


920e3d6b21-Oct-2024 Dmitry Stogov

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
Fix GH-16499: [JIT] Undefined to null coercion issues for return


fe51365521-Oct-2024 Dmitry Stogov

Fix GH-16499: [JIT] Undefined to null coercion issues for return

1...<<11121314151617181920>>...4572