Skip to content

[pull] master from php:master#463

Merged
pull[bot] merged 5 commits intokingdavid6336:masterfrom
php:master
May 27, 2020
Merged

[pull] master from php:master#463
pull[bot] merged 5 commits intokingdavid6336:masterfrom
php:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented May 27, 2020

See Commits and Changes for more details.


Created by pull[bot]. Want to support this open source service? Please star it : )

dstogov and others added 5 commits May 27, 2020 11:25
* PHP-7.3:
  Fixed possible usage of uninitialized value
* PHP-7.4:
  Fixed possible usage of uninitialized value
If * is used for width/precision in printf, then the width/precision
is provided by a printf argument instead of being part of the format
string. Semantics generally match those of printf in C.

This can be used to easily reproduce PHP's float printing behavior:

    // Locale-sensitive using precision ini setting.
    // Used prior to PHP 8.0.
    sprintf("%.*G", (int) ini_get('precision'), $float);

    // Locale-insensitive using precision ini setting.
    // Used since to PHP 8.0.
    sprintf("%.*H", (int) ini_get('precision'), $float);

    // Locale-insensitive using serialize_precision ini setting.
    // Used in serialize(), json_encode() etc.
    sprintf("%.*H", (int) ini_get('serialize_precision'), $float);

Closes GH-5432.
Apparently, breakpoints and watchpoints are practically disabled if
run with OPcache JIT under Windows, so we mark the affected tests as
xfail in that case for the time being.
@pull pull bot added the ⤵️ pull label May 27, 2020
@pull pull bot merged commit c5cf0af into kingdavid6336:master May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants