1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00

Merge branch 'PHP-7.4'

* PHP-7.4:
  Use *.data for tests data files
This commit is contained in:
Peter Kokot
2019-05-17 19:05:16 +02:00
4 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ error_reporting=2047
--FILE--
<?php
//error_reporting(E_ALL);
$utf = implode('', file(__DIR__.'/Quotes.UTF-8'));
$utf = implode('', file(__DIR__.'/Quotes.UTF-8.data'));
print(iconv("UTF-8", "ISO-8859-1//TRANSLIT", $utf));
print(iconv("UTF-8", "ASCII//TRANSLIT", $utf));
+2 -2
View File
@@ -14,8 +14,8 @@ function ascii2hex($ascii) {
return $hex;
}
$html_file = fopen(realpath(__DIR__) . '/html.raw', 'r');
$utf_8_filepath = realpath(__DIR__) . '/utf8.raw';
$html_file = fopen(realpath(__DIR__) . '/html.data', 'r');
$utf_8_filepath = realpath(__DIR__) . '/utf8.tmp';
$utf_8_file = fopen($utf_8_filepath, 'w+');
recode_file('html..utf8', $html_file, $utf_8_file);