Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14909627
D21866.id52148.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D21866.id52148.diff
View Options
diff --git a/.editorconfig b/.editorconfig
--- a/.editorconfig
+++ b/.editorconfig
@@ -10,25 +10,25 @@
max_line_length = 80
[.arclint]
-max_line_length =
+max_line_length = unset
[resources/sql/**.sql]
-max_line_length =
+max_line_length = unset
[scripts/install/install_*.sh]
-max_line_length =
+max_line_length = unset
[src/applications/differential/parser/__tests__/data/*.diff]
trim_trailing_whitespace = false
[src/applications/differential/parser/__tests__/messages/long-title.txt]
-max_line_length =
+max_line_length = unset
[src/applications/diffusion/ssh/__tests__/hgwiredata/*.txt]
-max_line_length =
+max_line_length = unset
[externals/**]
-indent_style =
-indent_size =
+indent_style = unset
+indent_size = unset
trim_trailing_whitespace = false
insert_final_newline = false
diff --git a/externals/pear-figlet/Text/Figlet.php b/externals/pear-figlet/Text/Figlet.php
--- a/externals/pear-figlet/Text/Figlet.php
+++ b/externals/pear-figlet/Text/Figlet.php
@@ -143,7 +143,12 @@
fclose($fp);
$zip = new ZipArchive();
- $open_result = $zip->open($filename, ZipArchive::RDONLY);
+ $open_flag = 0;
+ // The RDONLY flag was only introduced in 7.4.3.
+ if (defined('ZipArchive::RDONLY')) {
+ $open_flag = ZipArchive::RDONLY;
+ }
+ $open_result = $zip->open($filename, $open_flag);
if ($open_result !== true) {
return self::raiseError('Cannot open figlet font file ' .
$filename . ', got error: ' . $open_result, 2);
diff --git a/src/infrastructure/markup/interpreter/PhabricatorRemarkupCowsayBlockInterpreter.php b/src/infrastructure/markup/interpreter/PhabricatorRemarkupCowsayBlockInterpreter.php
--- a/src/infrastructure/markup/interpreter/PhabricatorRemarkupCowsayBlockInterpreter.php
+++ b/src/infrastructure/markup/interpreter/PhabricatorRemarkupCowsayBlockInterpreter.php
@@ -15,6 +15,7 @@
$map = self::getCowMap();
$cow = idx($argv, 'cow');
+ $cow = ($cow === null ? '' : $cow);
$cow = phutil_utf8_strtolower($cow);
if (empty($map[$cow])) {
$cow = 'default';
diff --git a/src/infrastructure/markup/interpreter/PhabricatorRemarkupFigletBlockInterpreter.php b/src/infrastructure/markup/interpreter/PhabricatorRemarkupFigletBlockInterpreter.php
--- a/src/infrastructure/markup/interpreter/PhabricatorRemarkupFigletBlockInterpreter.php
+++ b/src/infrastructure/markup/interpreter/PhabricatorRemarkupFigletBlockInterpreter.php
@@ -14,11 +14,13 @@
$map = self::getFigletMap();
$font = idx($argv, 'font');
+ $font = ($font === null ? '' : $font);
$font = phutil_utf8_strtolower($font);
if (empty($map[$font])) {
$font = 'standard';
}
+
$root = dirname(phutil_get_library_root('phabricator'));
require_once $root.'/externals/pear-figlet/Text/Figlet.php';
diff --git a/src/infrastructure/markup/remarkup/PhutilRemarkupEngine.php b/src/infrastructure/markup/remarkup/PhutilRemarkupEngine.php
--- a/src/infrastructure/markup/remarkup/PhutilRemarkupEngine.php
+++ b/src/infrastructure/markup/remarkup/PhutilRemarkupEngine.php
@@ -232,7 +232,11 @@
$lines = '';
for ($ii = $min; $ii < $max; $ii++) {
- $lines .= $text[$ii];
+ $text_val = '';
+ if (array_key_exists($ii, $text) && $text[$ii] !== null) {
+ $text_val = $text[$ii];
+ }
+ $lines .= $text_val;
}
$blocks[$key]['text'] = $lines;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 12, 3:50 AM (17 h, 25 s)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7123612
Default Alt Text
D21866.id52148.diff (3 KB)
Attached To
Mode
D21866: Addressing some PHP 8 incompatibilities - Remarkup
Attached
Detach File
Event Timeline
Log In to Comment