Home » PEAR » PEAR » Bug #1615
"pear build" doesn't create the ext_dir prior to copy
Details
| Submitted | 2004-06-11 12:00 UTC |
|---|---|
| From | cox at idecnet dot com |
| Assigned | cellog |
| Status | Closed |
| Package | PEAR |
| PHP Version | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2004-06-11 12:00 UTC] cox at idecnet dot com
Description:
------------
As reported by Wez time ago. Note this bug is *critical* as noone with a new php is avaible to install PECL extensions.
# pear build sqlite
[..]
Build process completed successfully
Installing 'radius.so' at ext_dir (/usr/lib/php/extensions/no-debug-non-zts-20020429/radius.so)
failed to copy radius.so to /usr/lib/php/extensions/no-debug-non-zts-20020429/radius.so
#
Here is a patch for Installer.php arround 807 (sorry still no cvs for me):
- $dest = $this->config->get('ext_dir') . DIRECTORY_SEPARATOR . $bn;
+ $ext_dir = $this->config->get('ext_dir');
+ $this->log(3, "+ mkdir -p $ext_dir");
+ if (!@is_dir($ext_dir) && !System::mkdir(array('-p', $ext_dir))) {
+ return $this->raiseError("failed to create extension dir '$ext_dir'");
+ }
+ $dest = $ext_dir . DIRECTORY_SEPARATOR . $bn;
Tomas V.V.Cox