Skip to content

Commit 32d54ac

Browse files
committed
Merge branch 'master' into jsond
2 parents 8e10250 + 2269b18 commit 32d54ac

File tree

93 files changed

+3428
-3528
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+3428
-3528
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
. Added \u{xxxxx} Unicode Codepoint Escape Syntax. (Andrea)
3434
. Fixed oversight where define() did not support arrays yet const syntax did. (Andrea, Dmitry)
3535
. Use "integer" and "float" instead of "long" and "double" in ZPP, type hint and conversion error messages. (Andrea)
36+
. Implemented FR #55428 (E_RECOVERABLE_ERROR when output buffering in output buffering handler). (Kalle)
3637

3738
- Date:
3839
. Fixed day_of_week function as it could sometimes return negative values

UPGRADING

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$Id$
1+
$Id$
22

33
PHP X.Y UPGRADE NOTES
44

@@ -52,6 +52,8 @@ PHP X.Y UPGRADE NOTES
5252
However, \u without a following { is unaffected, so "\u202e" won't error and
5353
will work the same as before.
5454
. zend_function.common.num_args don't include the variadic argument anymore.
55+
. ob_start() no longer issues an E_ERROR, but instead an E_RECOVERABLE_ERROR in case an
56+
output buffer is created in an output buffer handler.
5557

5658
- DBA
5759
. dba_delete() now returns false if the key was not found for the inifile

Zend/tests/multibyte/bug68665.phpt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
--TEST--
2+
Crash with Big5
3+
--SKIPIF--
4+
<?php
5+
if (!in_array("zend.detect_unicode", array_keys(ini_get_all()))) {
6+
die("skip Requires configure --enable-zend-multibyte option");
7+
}
8+
if (!extension_loaded("mbstring")) {
9+
die("skip Requires mbstring extension");
10+
}
11+
?>
12+
--INI--
13+
zend.multibyte=1
14+
mbstring.internal_encoding=big5
15+
--FILE--
16+
<?php
17+
echo '\'hello';
18+
?>
19+
20+
===DONE===
21+
--EXPECT--
22+
'hello
23+
===DONE===
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--TEST--
2+
Variable with boolean name
3+
--FILE--
4+
<?php
5+
6+
${true} = 42;
7+
var_dump(${true});
8+
var_dump(${'1'});
9+
10+
?>
11+
--EXPECT--
12+
int(42)
13+
int(42)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--TEST--
2+
Variable with integer name
3+
--FILE--
4+
<?php
5+
6+
${10} = 42;
7+
var_dump(${10});
8+
9+
?>
10+
--EXPECT--
11+
int(42)

0 commit comments

Comments
 (0)