summaryrefslogtreecommitdiff
path: root/ext/exif
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-10-13 11:22:30 +0200
committerPeter Kokot <peterkokot@gmail.com>2018-10-13 11:22:30 +0200
commit2aa897476fd584c037d2414e18382a7e9531e6db (patch)
tree90e54e2e231e4536f1a97862ea985491d04a9b0b /ext/exif
parent5a0610d8ccf28c318a16786024a711bce5633019 (diff)
downloadphp-git-2aa897476fd584c037d2414e18382a7e9531e6db.tar.gz
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.
Diffstat (limited to 'ext/exif')
-rw-r--r--ext/exif/tests/bug76164.phpt32
1 files changed, 16 insertions, 16 deletions
diff --git a/ext/exif/tests/bug76164.phpt b/ext/exif/tests/bug76164.phpt
index ea77e1d5e9..72aefad6f1 100644
--- a/ext/exif/tests/bug76164.phpt
+++ b/ext/exif/tests/bug76164.phpt
@@ -1,16 +1,16 @@
---TEST--
-Bug #76164 (exif_read_data zend_mm_heap corrupted)
---SKIPIF--
-<?php
-if (!extension_loaded('exif')) die('skip exif extension not available');
-?>
---FILE--
-<?php
-$var1 = 'nonexistentfile';
-$var2 = 2200000000;
-@exif_read_data($var1, $var2); // we're not interested in the warning, here
-$var2 = 1;
-?>
-===DONE===
---EXPECT--
-===DONE===
+--TEST--
+Bug #76164 (exif_read_data zend_mm_heap corrupted)
+--SKIPIF--
+<?php
+if (!extension_loaded('exif')) die('skip exif extension not available');
+?>
+--FILE--
+<?php
+$var1 = 'nonexistentfile';
+$var2 = 2200000000;
+@exif_read_data($var1, $var2); // we're not interested in the warning, here
+$var2 = 1;
+?>
+===DONE===
+--EXPECT--
+===DONE===