com php-src: Convert CRLF line endings to LF: ext/spl/tests/bug77298.phpt
| From: | Peter Kokot | Date: | Tue, 07 May 2019 02:34:37 +0000 |
| Subject: | com php-src: Convert CRLF line endings to LF: ext/spl/tests/bug77298.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106047@lists.php.net to get a copy of this message | ||
Commit: d153fbc5a935a73e95bfb1c13f82208c4983aa2f
Author: Peter Kokot <peterkokot@gmail.com> Tue, 7 May 2019 04:34:37 +0200
Parents: 36a7d9fca4039624c13902230cd33c3d535b8642
Branches: PHP-7.3 PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d153fbc5a935a73e95bfb1c13f82208c4983aa2f
Log:
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.
Changed paths:
M ext/spl/tests/bug77298.phpt
Diff:
diff --git a/ext/spl/tests/bug77298.phpt b/ext/spl/tests/bug77298.phpt
index 46eab67..0b24cff 100644
--- a/ext/spl/tests/bug77298.phpt
+++ b/ext/spl/tests/bug77298.phpt
@@ -1,28 +1,28 @@
---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)
- }
-}
\ No newline at end of file
+--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)
+ }
+}