Test: /ext/standard/tests/strings/bug61116.phpt - Version 8.0.0-dev        

Bug #61116 HTML functions use encoding, not charset
Submitted: 2012-02-16 23:54:14 Modified: 2015-04-19 03:46:31
From: vrana Assigned: stas
Status: Closed Package: Strings related
PHP Version: trunk-SVN-2012-02-16 (SVN) OS: Irrelevant

There are 8 different diffs reported by users for this test.

Count Diff
12 (40%)
004+ Parameter #0 [ <required> string $string ]
005+ Parameter #1 [ <optional> int $flags ]
006+ Parameter #2 [ <optional> string $encoding ]
007+ Parameter #3 [ <optional> bool $double_encode ]
004- Parameter #0 [ <required> $string ]
005- Parameter #1 [ <optional> $quote_style ]
006- Parameter #2 [ <optional> $encoding ]
007- Parameter #3 [ <optional> $double_encode ]
009+ - Return [ string ]
014- Parameter #0 [ <optional> $table ]
015- Parameter #1 [ <optional> $quote_style ]
016- Parameter #2 [ <optional> $encoding ]
015+ Parameter #0 [ <optional> int $table ]
016+ Parameter #1 [ <optional> int $quote_style ]
017+ Parameter #2 [ <optional> string $encoding ]
019+ - Return [ array ]
9 (30%)
004+ Parameter #0 [ <required> mixed $string ] 005+ Parameter #1 [ <optional> mixed $quote_style ] 006+ Parameter #2 [ <optional> mixed $encoding ] 007+ Parameter #3 [ <optional> mixed $double_encode ] 008+ } 009+ - Return [ mixed ] 004- Parameter #0 [ <required> string $string ] 005- Parameter #1 [ <optional> int $quote_style ] 006- Parameter #2 [ <optional> ?string $encoding ] 007- Parameter #3 [ <optional> bool $double_encode ] 008- } 009- - Return [ string ] 015+ Parameter #0 [ <optional> mixed $table ] 016+ Parameter #1 [ <optional> mixed $quote_style ] 017+ Parameter #2 [ <optional> mixed $encoding ] 018+ } 019+ - Return [ mixed ] 015- Parameter #0 [ <optional> int $table ] 016- Parameter #1 [ <optional> int $quote_style ] 017- Parameter #2 [ <optional> string $encoding ] 018- } 019- - Return [ array ]
4 (13%)
006+ Parameter #2 [ <optional> ?string $encoding ]
006- Parameter #2 [ <optional> string or NULL $encoding ]
1 (3%)
021+ 022+ [Sat Feb 1 08:15:43 2020] Script: %s/bug61116.php' 023+ /home/travis/build/kocsismate/php-src/Zend/zend_smart_str.c(153) : Freeing 0x00007f4ec487f400 (224 bytes), %s/bug61116.php 024+ Last leak repeated 1 time 025+ === Total 2 memory leaks detected ===
1 (3%)
021+ 022+ [Sat Feb 1 08:15:32 2020] Script: %s/bug61116.php' 023+ /home/travis/build/php/php-src/Zend/zend_smart_str.c(153) : Freeing 0x00007fb35927f400 (224 bytes), %s/bug61116.php 024+ Last leak repeated 1 time 025+ === Total 2 memory leaks detected ===
1 (3%)
021+ 022+ [Sat Feb 1 08:12:11 2020] Script: %s/bug61116.php' 023+ /home/travis/build/php/php-src/Zend/zend_smart_str.c(153) : Freeing 0x0000ffffb1688400 (224 bytes), %s/bug61116.php 024+ Last leak repeated 1 time 025+ === Total 2 memory leaks detected ===
1 (3%)
021+ 022+ [Sat Feb 1 08:11:40 2020] Script: %s/bug61116.php' 023+ /home/travis/build/kocsismate/php-src/Zend/zend_smart_str.c(153) : Freeing 0x0000ffffb8a88400 (224 bytes), %s/bug61116.php 024+ Last leak repeated 1 time 025+ === Total 2 memory leaks detected ===
1 (3%)
005+ Parameter #1 [ <optional> callable $quote_style = ENT_COMPAT ] 005- Parameter #1 [ <optional> int $quote_style = ENT_COMPAT ] 007+ Parameter #3 [ <optional> float $double_encode = true ] 007- Parameter #3 [ <optional> bool $double_encode = true ] 015+ Parameter #0 [ <optional> callable $table = HTML_SPECIALCHARS ] 016+ Parameter #1 [ <optional> callable $quote_style = ENT_COMPAT ] 015- Parameter #0 [ <optional> int $table = HTML_SPECIALCHARS ] 016- Parameter #1 [ <optional> int $quote_style = ENT_COMPAT ] 019+ - Return [ resource (closed) ] 019- - Return [ array ]