Skip to content

Commit 8ac612f

Browse files
committed
release(v1.0.3): stabilize socket mode, refresh docs, and show runtime PHP/ext-imap status in demo
1 parent ed25d8e commit 8ac612f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

example/index.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
exit;
1010
}
1111

12+
$phpVersion = PHP_VERSION;
13+
$imapLoaded = extension_loaded('imap');
14+
1215
?><!DOCTYPE html>
1316
<html lang="en">
1417
<head>
@@ -1085,7 +1088,8 @@
10851088
<div style="display:flex;justify-content:space-between;width:100%;">
10861089
<span>A lightweight IMAP library for PHP 8.1+</span>
10871090
<span style="font-size:14px;">
1088-
<?= extension_loaded('imap')
1091+
<span style="color:var(--muted);margin-right:.65rem;font-size:12px;" title="Runtime PHP version">PHP <?= htmlspecialchars($phpVersion, ENT_QUOTES, 'UTF-8') ?></span>
1092+
<?= $imapLoaded
10891093
? '<span style="color:#fa8933;cursor:help" title="The php-imap extension is deprecated and removed as of PHP 8.4.">ext-imap on</span>'
10901094
: '<span style="color:#30dd70;cursor:help" title="Native socket mode">ext-imap off</span>' ?>
10911095
</span>

0 commit comments

Comments
 (0)