Skip to content

Commit d153fbc

Browse files
committed
Convert CRLF line endings to LF
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.
1 parent 36a7d9f commit d153fbc

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

ext/spl/tests/bug77298.phpt

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
--TEST--
2-
Bug #77298 (segfault occurs when add property to unserialized ArrayObject)
3-
--FILE--
4-
<?php
5-
$o = new ArrayObject();
6-
$o2 = unserialize(serialize($o));
7-
$o2[1]=123;
8-
var_dump($o2);
9-
10-
$o3 = new ArrayObject();
11-
$o3->unserialize($o->serialize());
12-
$o3['xm']=456;
13-
var_dump($o3);
14-
--EXPECT--
15-
object(ArrayObject)#2 (1) {
16-
["storage":"ArrayObject":private]=>
17-
array(1) {
18-
[1]=>
19-
int(123)
20-
}
21-
}
22-
object(ArrayObject)#3 (1) {
23-
["storage":"ArrayObject":private]=>
24-
array(1) {
25-
["xm"]=>
26-
int(456)
27-
}
28-
}
1+
--TEST--
2+
Bug #77298 (segfault occurs when add property to unserialized ArrayObject)
3+
--FILE--
4+
<?php
5+
$o = new ArrayObject();
6+
$o2 = unserialize(serialize($o));
7+
$o2[1]=123;
8+
var_dump($o2);
9+
10+
$o3 = new ArrayObject();
11+
$o3->unserialize($o->serialize());
12+
$o3['xm']=456;
13+
var_dump($o3);
14+
--EXPECT--
15+
object(ArrayObject)#2 (1) {
16+
["storage":"ArrayObject":private]=>
17+
array(1) {
18+
[1]=>
19+
int(123)
20+
}
21+
}
22+
object(ArrayObject)#3 (1) {
23+
["storage":"ArrayObject":private]=>
24+
array(1) {
25+
["xm"]=>
26+
int(456)
27+
}
28+
}

0 commit comments

Comments
 (0)