php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61648
Patch Installer.php.patch revision 2012-11-15 12:35 UTC by paulie4 at gmail dot com

Patch Installer.php.patch for apd Bug #61648

Patch version 2012-11-15 12:35 UTC

Return to Bug #61648 | Download this patch
Patch Revisions:

Developer: paulie4@gmail.com

--- Installer.php~	2012-01-06 00:05:03.000000000 +0000
+++ Installer.php	2012-11-15 12:31:47.495562295 +0000
@@ -245,6 +245,9 @@
         // {{{ assemble the destination paths
         switch ($atts['role']) {
             case 'src':
+                $this->source_files++;
+                $dest_dir = dirname($this->pkginfo->getPackageFile());
+                break;
             case 'extsrc':
                 $this->source_files++;
                 return;
@@ -322,6 +325,8 @@
                     return $this->raiseError("file $orig_file does not exist",
                                              PEAR_INSTALLER_FAILED);
                 }
+                if (is_dir($orig_file))
+                    return;  // directories shouldn't be in here?
 
                 if (!@copy($orig_file, $dest_file)) {
                     return $this->raiseError("failed to write $dest_file: $php_errormsg",
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 20:01:30 2024 UTC