Skip to content

Commit

Permalink
Merge branch 'PHP-5.6' into PHP-7.0
Browse files Browse the repository at this point in the history
* PHP-5.6:
  backport to 5.6 (we should not unset the default value)

Conflicts:
	Zend/zend_exceptions.c
	ext/standard/tests/serialize/bug69152.phpt
  • Loading branch information
laruence committed Jul 12, 2016
2 parents 4290291 + 7903276 commit f71fcf8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 0 additions & 1 deletion ext/standard/tests/serialize/bug69152.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ $x->test();

?>
--EXPECTF--
Notice: Undefined property: Exception::$previous in %s on line %d
Exception in %s:%d
Stack trace:
#0 {main}
Expand Down
2 changes: 0 additions & 2 deletions ext/standard/tests/serialize/bug69793.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ $e = unserialize('O:9:"Exception":7:{s:17:"'."\0".'Exception'."\0".'string";s:1:
var_dump($e."");
?>
--EXPECTF--
Notice: Undefined property: Exception::$message in %s%ebug69793.php on line %d

Notice: Undefined property: Exception::$file in %s%ebug69793.php on line %d

Notice: Undefined property: Exception::$previous in %s%ebug69793.php on line %d
Expand Down
12 changes: 8 additions & 4 deletions ext/standard/tests/serialize/bug70963.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var_dump(unserialize('a:2:{i:0;O:9:"exception":1:{s:16:"'."\0".'Exception'."\0".
--EXPECTF--
array(1) {
[0]=>
object(Exception)#%d (5) {
object(Exception)#%d (6) {
["message":protected]=>
string(0) ""
["string":"Exception":private]=>
Expand All @@ -18,12 +18,14 @@ array(1) {
["file":protected]=>
string(%d) "%s"
["line":protected]=>
int(%d)
int(2)
["previous":"Exception":private]=>
NULL
}
}
array(1) {
[0]=>
object(Exception)#%d (5) {
object(Exception)#%d (6) {
["message":protected]=>
string(0) ""
["string":"Exception":private]=>
Expand All @@ -33,6 +35,8 @@ array(1) {
["file":protected]=>
string(%d) "%s"
["line":protected]=>
int(%d)
int(3)
["previous":"Exception":private]=>
NULL
}
}

0 comments on commit f71fcf8

Please sign in to comment.