Ticket #1486150 (closed Bugs: fixed)
[PHP 5.3 compatibility] Installer: don't use dl() calls on SAPI
| Reported by: | jaspersl | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.3.1 |
| Component: | Installer | Version: | 0.3-stable |
| Severity: | minor | Keywords: | PHP 5.3 |
| Cc: |
Description
On Mac OS X 10.6 (ships with PHP 5.3) and Windows (PHP 5.3) using dl() gives: Fatal error: Call to undefined function dl() when using Apache 2.2 SAPI module.
The notes on http://nl2.php.net/dl usuage are pretty obvious but as @dl() is used, the installer (installer/check.php) aborts without a fancy warning.
In my opion Roundcube should not attempt to use dl() at all to load modules unless it's on CGI.
Suggested fix:
$msg = PHP_SAPI != 'cli'
