mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
d153fbc5a9
This patch simplifies line endings tracked in the Git repository and syncs them to all include the LF style instead of the CRLF files. Newline characters: - LF (\n) (*nix and Mac) - CRLF (\r\n) (Windows) - CR (\r) (old Mac, obsolete) To see which line endings are in the index and in the working copy the following command can be used: `git ls-files --eol` Git additionally provides `.gitattributes` file to specify if some files need to have specific line endings on all platforms (either CRLF or LF). Changed files shouldn't cause issues on modern Windows platforms because also Git can do output conversion is core.autocrlf=true is set on Windows and use CRLF newlines in all files in the working tree. Unless CRLF files are tracked specifically, Git by default tracks all files in the index using LF newlines.
29 lines
505 B
PHP
29 lines
505 B
PHP
--TEST--
|
|
Bug #77298 (segfault occurs when add property to unserialized ArrayObject)
|
|
--FILE--
|
|
<?php
|
|
$o = new ArrayObject();
|
|
$o2 = unserialize(serialize($o));
|
|
$o2[1]=123;
|
|
var_dump($o2);
|
|
|
|
$o3 = new ArrayObject();
|
|
$o3->unserialize($o->serialize());
|
|
$o3['xm']=456;
|
|
var_dump($o3);
|
|
--EXPECT--
|
|
object(ArrayObject)#2 (1) {
|
|
["storage":"ArrayObject":private]=>
|
|
array(1) {
|
|
[1]=>
|
|
int(123)
|
|
}
|
|
}
|
|
object(ArrayObject)#3 (1) {
|
|
["storage":"ArrayObject":private]=>
|
|
array(1) {
|
|
["xm"]=>
|
|
int(456)
|
|
}
|
|
}
|