Subversion Repositories Applications.gtt

Rev

Rev 94 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 94 Rev 187
Line 2... Line 2...
2
/**
2
/**
3
 * PEAR_Builder for building PHP extensions (PECL packages)
3
 * PEAR_Builder for building PHP extensions (PECL packages)
4
 *
4
 *
5
 * PHP versions 4 and 5
5
 * PHP versions 4 and 5
6
 *
6
 *
7
 * LICENSE: This source file is subject to version 3.0 of the PHP license
-
 
8
 * that is available through the world-wide-web at the following URI:
-
 
9
 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
-
 
10
 * the PHP License and are unable to obtain it through the web, please
-
 
11
 * send a note to license@php.net so we can mail you a copy immediately.
-
 
12
 *
-
 
13
 * @category   pear
7
 * @category   pear
14
 * @package    PEAR
8
 * @package    PEAR
15
 * @author     Stig Bakken <ssb@php.net>
9
 * @author     Stig Bakken <ssb@php.net>
16
 * @author     Greg Beaver <cellog@php.net>
10
 * @author     Greg Beaver <cellog@php.net>
17
 * @copyright  1997-2006 The PHP Group
11
 * @copyright  1997-2009 The Authors
18
 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
12
 * @license    http://opensource.org/licenses/bsd-license.php New BSD License
19
 * @version    CVS: $Id: Builder.php,v 1.31 2007/01/10 05:32:51 cellog Exp $
-
 
20
 * @link       http://pear.php.net/package/PEAR
13
 * @link       http://pear.php.net/package/PEAR
21
 * @since      File available since Release 0.1
14
 * @since      File available since Release 0.1
22
 * 
15
 *
23
 * TODO: log output parameters in PECL command line
16
 * TODO: log output parameters in PECL command line
24
 * TODO: msdev path in configuration
17
 * TODO: msdev path in configuration
25
 */
18
 */
Line 26... Line 19...
26
 
19
 
27
/**
20
/**
28
 * Needed for extending PEAR_Builder
21
 * Needed for extending PEAR_Builder
29
 */
22
 */
30
require_once 'PEAR/Common.php';
23
require_once 'PEAR/Common.php';
-
 
24
require_once 'PEAR/PackageFile.php';
-
 
25
require_once 'System.php';
31
require_once 'PEAR/PackageFile.php';
26
 
32
/**
27
/**
33
 * Class to handle building (compiling) extensions.
28
 * Class to handle building (compiling) extensions.
34
 *
29
 *
35
 * @category   pear
30
 * @category   pear
36
 * @package    PEAR
31
 * @package    PEAR
37
 * @author     Stig Bakken <ssb@php.net>
32
 * @author     Stig Bakken <ssb@php.net>
38
 * @author     Greg Beaver <cellog@php.net>
33
 * @author     Greg Beaver <cellog@php.net>
39
 * @copyright  1997-2006 The PHP Group
34
 * @copyright  1997-2009 The Authors
40
 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
35
 * @license    http://opensource.org/licenses/bsd-license.php New BSD License
41
 * @version    Release: 1.5.1
36
 * @version    Release: 1.10.1
42
 * @link       http://pear.php.net/package/PEAR
37
 * @link       http://pear.php.net/package/PEAR
43
 * @since      Class available since PHP 4.0.2
38
 * @since      Class available since PHP 4.0.2
44
 * @see        http://pear.php.net/manual/en/core.ppm.pear-builder.php
39
 * @see        http://pear.php.net/manual/en/core.ppm.pear-builder.php
45
 */
40
 */
46
class PEAR_Builder extends PEAR_Common
41
class PEAR_Builder extends PEAR_Common
47
{
-
 
48
    // {{{ properties
-
 
49
 
42
{
50
    var $php_api_version = 0;
43
    var $php_api_version = 0;
51
    var $zend_module_api_no = 0;
44
    var $zend_module_api_no = 0;
Line 52... Line 45...
52
    var $zend_extension_api_no = 0;
45
    var $zend_extension_api_no = 0;
Line 60... Line 53...
60
    var $current_callback = null;
53
    var $current_callback = null;
Line 61... Line 54...
61
 
54
 
62
    // used for msdev builds
55
    // used for msdev builds
63
    var $_lastline = null;
56
    var $_lastline = null;
64
    var $_firstline = null;
-
 
65
    // }}}
-
 
Line 66... Line 57...
66
    // {{{ constructor
57
    var $_firstline = null;
67
 
58
 
68
    /**
59
    /**
69
     * PEAR_Builder constructor.
60
     * PEAR_Builder constructor.
70
     *
61
     *
71
     * @param object $ui user interface object (instance of PEAR_Frontend_*)
62
     * @param object $ui user interface object (instance of PEAR_Frontend_*)
72
     *
63
     *
73
     * @access public
64
     * @access public
74
     */
65
     */
75
    function PEAR_Builder(&$ui)
66
    function __construct(&$ui)
76
    {
67
    {
77
        parent::PEAR_Common();
68
        parent::__construct();
Line 78... Line -...
78
        $this->setFrontendObject($ui);
-
 
79
    }
-
 
80
 
-
 
81
    // }}}
-
 
82
 
69
        $this->setFrontendObject($ui);
83
    // {{{ _build_win32()
70
    }
84
 
71
 
85
    /**
72
    /**
86
     * Build an extension from source on windows.
73
     * Build an extension from source on windows.
87
     * requires msdev
74
     * requires msdev
88
     */
75
     */
89
    function _build_win32($descfile, $callback = null)
76
    function _build_win32($descfile, $callback = null)
90
    {
77
    {
91
        if (is_object($descfile)) {
78
        if (is_object($descfile)) {
92
            $pkg = $descfile;
79
            $pkg = $descfile;
93
            $descfile = $pkg->getPackageFile();
80
            $descfile = $pkg->getPackageFile();
94
        } else {
81
        } else {
95
            $pf = &new PEAR_PackageFile($this->config, $this->debug);
82
            $pf = new PEAR_PackageFile($this->config, $this->debug);
96
            $pkg = &$pf->fromPackageFile($descfile, PEAR_VALIDATE_NORMAL);
83
            $pkg = &$pf->fromPackageFile($descfile, PEAR_VALIDATE_NORMAL);
97
            if (PEAR::isError($pkg)) {
84
            if (PEAR::isError($pkg)) {
Line 102... Line 89...
102
        $old_cwd = getcwd();
89
        $old_cwd = getcwd();
Line 103... Line 90...
103
 
90
 
104
        if (!file_exists($dir) || !is_dir($dir) || !chdir($dir)) {
91
        if (!file_exists($dir) || !is_dir($dir) || !chdir($dir)) {
105
            return $this->raiseError("could not chdir to $dir");
92
            return $this->raiseError("could not chdir to $dir");
-
 
93
        }
106
        }
94
 
107
        // packages that were in a .tar have the packagefile in this directory
95
        // packages that were in a .tar have the packagefile in this directory
108
        $vdir = $pkg->getPackage() . '-' . $pkg->getVersion();
96
        $vdir = $pkg->getPackage() . '-' . $pkg->getVersion();
109
        if (file_exists($dir) && is_dir($vdir)) {
97
        if (file_exists($dir) && is_dir($vdir)) {
110
            if (chdir($vdir)) {
-
 
111
                $dir = getcwd();
-
 
112
            } else {
98
            if (!chdir($vdir)) {
113
                return $this->raiseError("could not chdir to " . realpath($vdir));
99
                return $this->raiseError("could not chdir to " . realpath($vdir));
-
 
100
            }
-
 
101
 
114
            }
102
            $dir = getcwd();
Line 115... Line 103...
115
        }
103
        }
Line 116... Line 104...
116
 
104
 
Line 134... Line 122...
134
        if (preg_match('/.*?'.$pkg->getPackage().'\s-\s(\w+)\s(.*?)-+/i',$this->_firstline,$matches)) {
122
        if (preg_match('/.*?'.$pkg->getPackage().'\s-\s(\w+)\s(.*?)-+/i',$this->_firstline,$matches)) {
135
            $platform = $matches[1];
123
            $platform = $matches[1];
136
            $buildtype = $matches[2];
124
            $buildtype = $matches[2];
137
        }
125
        }
Line 138... Line 126...
138
 
126
 
139
        if (preg_match('/(.*)?\s-\s(\d+).*?(\d+)/',$this->_lastline,$matches)) {
127
        if (preg_match('/(.*)?\s-\s(\d+).*?(\d+)/', $this->_lastline, $matches)) {
140
            if ($matches[2]) {
128
            if ($matches[2]) {
141
                // there were errors in the build
129
                // there were errors in the build
142
                return $this->raiseError("There were errors during compilation.");
130
                return $this->raiseError("There were errors during compilation.");
143
            }
131
            }
Line 156... Line 144...
156
                    $pkg->getPackage().'\s-\s'.
144
                    $pkg->getPackage().'\s-\s'.
157
                    $platform.'\s'.
145
                    $platform.'\s'.
158
                    $buildtype.'").*?'.
146
                    $buildtype.'").*?'.
159
                    '\/out:"(.*?)"/is';
147
                    '\/out:"(.*?)"/is';
Line 160... Line 148...
160
 
148
 
161
        if ($dsptext && preg_match($regex,$dsptext,$matches)) {
149
        if ($dsptext && preg_match($regex, $dsptext, $matches)) {
162
            // what we get back is a relative path to the output file itself.
150
            // what we get back is a relative path to the output file itself.
163
            $outfile = realpath($matches[2]);
151
            $outfile = realpath($matches[2]);
164
        } else {
152
        } else {
165
            return $this->raiseError("Could not retrieve output information from $dsp.");
153
            return $this->raiseError("Could not retrieve output information from $dsp.");
Line 186... Line 174...
186
        if (!$this->_firstline)
174
        if (!$this->_firstline)
187
            $this->_firstline = $data;
175
            $this->_firstline = $data;
188
        $this->_lastline = $data;
176
        $this->_lastline = $data;
189
        call_user_func($this->current_callback, $what, $data);
177
        call_user_func($this->current_callback, $what, $data);
190
    }
178
    }
191
    // }}}
-
 
Line 192... Line -...
192
 
-
 
193
    // {{{ _harventInstDir
179
 
194
    /**
180
    /**
195
     * @param string
181
     * @param string
196
     * @param string
182
     * @param string
197
     * @param array
183
     * @param array
Line 229... Line 215...
229
        }
215
        }
230
        closedir($d);
216
        closedir($d);
231
        return $ret;
217
        return $ret;
232
    }
218
    }
Line 233... Line -...
233
 
-
 
234
    // }}}
-
 
235
 
-
 
236
    // {{{ build()
-
 
237
 
219
 
238
    /**
220
    /**
239
     * Build an extension from source.  Runs "phpize" in the source
221
     * Build an extension from source.  Runs "phpize" in the source
240
     * directory, but compiles in a temporary directory
222
     * directory, but compiles in a temporary directory
241
     * (/var/tmp/pear-build-USER/PACKAGE-VERSION).
223
     * (TMPDIR/pear-build-USER/PACKAGE-VERSION).
242
     *
224
     *
243
     * @param string|PEAR_PackageFile_v* $descfile path to XML package description file, or
225
     * @param string|PEAR_PackageFile_v* $descfile path to XML package description file, or
244
     *               a PEAR_PackageFile object
226
     *               a PEAR_PackageFile object
245
     *
227
     *
Line 258... Line 240...
258
     *
240
     *
259
     * @see PEAR_Builder::_runCommand
241
     * @see PEAR_Builder::_runCommand
260
     */
242
     */
261
    function build($descfile, $callback = null)
243
    function build($descfile, $callback = null)
262
    {
244
    {
-
 
245
        if (preg_match('/(\\/|\\\\|^)([^\\/\\\\]+)?php([^\\/\\\\]+)?$/',
-
 
246
                       $this->config->get('php_bin'), $matches)) {
-
 
247
            if (isset($matches[2]) && strlen($matches[2]) &&
-
 
248
                trim($matches[2]) != trim($this->config->get('php_prefix'))) {
-
 
249
                $this->log(0, 'WARNING: php_bin ' . $this->config->get('php_bin') .
-
 
250
                           ' appears to have a prefix ' . $matches[2] . ', but' .
-
 
251
                           ' config variable php_prefix does not match');
-
 
252
            }
-
 
253
 
-
 
254
            if (isset($matches[3]) && strlen($matches[3]) &&
-
 
255
                trim($matches[3]) != trim($this->config->get('php_suffix'))) {
-
 
256
                $this->log(0, 'WARNING: php_bin ' . $this->config->get('php_bin') .
-
 
257
                           ' appears to have a suffix ' . $matches[3] . ', but' .
-
 
258
                           ' config variable php_suffix does not match');
-
 
259
            }
-
 
260
        }
-
 
261
 
263
        $this->current_callback = $callback;
262
        $this->current_callback = $callback;
264
        if (PEAR_OS == "Windows") {
263
        if (PEAR_OS == "Windows") {
265
            return $this->_build_win32($descfile,$callback);
264
            return $this->_build_win32($descfile, $callback);
266
        }
265
        }
-
 
266
 
267
        if (PEAR_OS != 'Unix') {
267
        if (PEAR_OS != 'Unix') {
268
            return $this->raiseError("building extensions not supported on this platform");
268
            return $this->raiseError("building extensions not supported on this platform");
269
        }
269
        }
-
 
270
 
270
        if (is_object($descfile)) {
271
        if (is_object($descfile)) {
271
            $pkg = $descfile;
272
            $pkg = $descfile;
272
            $descfile = $pkg->getPackageFile();
273
            $descfile = $pkg->getPackageFile();
-
 
274
            if (is_a($pkg, 'PEAR_PackageFile_v1')) {
-
 
275
                $dir = dirname($descfile);
-
 
276
            } else {
-
 
277
                $dir = $pkg->_config->get('temp_dir') . '/' . $pkg->getName();
-
 
278
                // automatically delete at session end
-
 
279
                $this->addTempFile($dir);
-
 
280
            }
273
        } else {
281
        } else {
274
            $pf = &new PEAR_PackageFile($this->config);
282
            $pf = new PEAR_PackageFile($this->config);
275
            $pkg = &$pf->fromPackageFile($descfile, PEAR_VALIDATE_NORMAL);
283
            $pkg = &$pf->fromPackageFile($descfile, PEAR_VALIDATE_NORMAL);
276
            if (PEAR::isError($pkg)) {
284
            if (PEAR::isError($pkg)) {
277
                return $pkg;
285
                return $pkg;
278
            }
286
            }
-
 
287
            $dir = dirname($descfile);
279
        }
288
        }
-
 
289
 
-
 
290
        // Find config. outside of normal path - e.g. config.m4
-
 
291
        foreach (array_keys($pkg->getInstallationFileList()) as $item) {
-
 
292
          if (stristr(basename($item), 'config.m4') && dirname($item) != '.') {
280
        $dir = dirname($descfile);
293
            $dir .= DIRECTORY_SEPARATOR . dirname($item);
-
 
294
            break;
-
 
295
          }
-
 
296
        }
-
 
297
 
281
        $old_cwd = getcwd();
298
        $old_cwd = getcwd();
282
        if (!file_exists($dir) || !is_dir($dir) || !chdir($dir)) {
299
        if (!file_exists($dir) || !is_dir($dir) || !chdir($dir)) {
283
            return $this->raiseError("could not chdir to $dir");
300
            return $this->raiseError("could not chdir to $dir");
284
        }
301
        }
-
 
302
 
285
        $vdir = $pkg->getPackage() . '-' . $pkg->getVersion();
303
        $vdir = $pkg->getPackage() . '-' . $pkg->getVersion();
286
        if (is_dir($vdir)) {
304
        if (is_dir($vdir)) {
287
            chdir($vdir);
305
            chdir($vdir);
288
        }
306
        }
-
 
307
 
289
        $dir = getcwd();
308
        $dir = getcwd();
290
        $this->log(2, "building in $dir");
309
        $this->log(2, "building in $dir");
291
        putenv('PATH=' . $this->config->get('bin_dir') . ':' . getenv('PATH'));
310
        putenv('PATH=' . $this->config->get('bin_dir') . ':' . getenv('PATH'));
-
 
311
        $err = $this->_runCommand($this->config->get('php_prefix')
-
 
312
                                . "phpize" .
-
 
313
                                $this->config->get('php_suffix'),
292
        $err = $this->_runCommand("phpize", array(&$this, 'phpizeCallback'));
314
                                array(&$this, 'phpizeCallback'));
293
        if (PEAR::isError($err)) {
315
        if (PEAR::isError($err)) {
294
            return $err;
316
            return $err;
295
        }
317
        }
-
 
318
 
296
        if (!$err) {
319
        if (!$err) {
297
            return $this->raiseError("`phpize' failed");
320
            return $this->raiseError("`phpize' failed");
298
        }
321
        }
Line 299... Line 322...
299
 
322
 
300
        // {{{ start of interactive part
323
        // {{{ start of interactive part
-
 
324
        $configure_command = "$dir/configure";
-
 
325
 
-
 
326
        $phpConfigName = $this->config->get('php_prefix')
-
 
327
            . 'php-config'
-
 
328
            . $this->config->get('php_suffix');
-
 
329
        $phpConfigPath = System::which($phpConfigName);
-
 
330
        if ($phpConfigPath !== false) {
-
 
331
            $configure_command .= ' --with-php-config='
-
 
332
                . $phpConfigPath;
-
 
333
        }
301
        $configure_command = "$dir/configure";
334
 
302
        $configure_options = $pkg->getConfigureOptions();
335
        $configure_options = $pkg->getConfigureOptions();
303
        if ($configure_options) {
336
        if ($configure_options) {
304
            foreach ($configure_options as $o) {
337
            foreach ($configure_options as $o) {
305
                $default = array_key_exists('default', $o) ? $o['default'] : null;
338
                $default = array_key_exists('default', $o) ? $o['default'] : null;
Line 316... Line 349...
316
            }
349
            }
317
        }
350
        }
318
        // }}} end of interactive part
351
        // }}} end of interactive part
Line 319... Line 352...
319
 
352
 
320
        // FIXME make configurable
353
        // FIXME make configurable
321
        if(!$user=getenv('USER')){
354
        if (!$user=getenv('USER')) {
322
            $user='defaultuser';
355
            $user='defaultuser';
-
 
356
        }
-
 
357
 
323
        }
358
        $tmpdir = $this->config->get('temp_dir');
324
        $build_basedir = "/var/tmp/pear-build-$user";
359
        $build_basedir = System::mktemp(' -t "' . $tmpdir . '" -d "pear-build-' . $user . '"');
325
        $build_dir = "$build_basedir/$vdir";
360
        $build_dir = "$build_basedir/$vdir";
326
        $inst_dir = "$build_basedir/install-$vdir";
361
        $inst_dir = "$build_basedir/install-$vdir";
327
        $this->log(1, "building in $build_dir");
362
        $this->log(1, "building in $build_dir");
328
        if (is_dir($build_dir)) {
363
        if (is_dir($build_dir)) {
329
            System::rm(array('-rf', $build_dir));
364
            System::rm(array('-rf', $build_dir));
-
 
365
        }
330
        }
366
 
331
        if (!System::mkDir(array('-p', $build_dir))) {
367
        if (!System::mkDir(array('-p', $build_dir))) {
332
            return $this->raiseError("could not create build dir: $build_dir");
368
            return $this->raiseError("could not create build dir: $build_dir");
-
 
369
        }
333
        }
370
 
334
        $this->addTempFile($build_dir);
371
        $this->addTempFile($build_dir);
335
        if (!System::mkDir(array('-p', $inst_dir))) {
372
        if (!System::mkDir(array('-p', $inst_dir))) {
336
            return $this->raiseError("could not create temporary install dir: $inst_dir");
373
            return $this->raiseError("could not create temporary install dir: $inst_dir");
337
        }
374
        }
Line 338... Line -...
338
        $this->addTempFile($inst_dir);
-
 
339
 
375
        $this->addTempFile($inst_dir);
340
        if (getenv('MAKE')) {
-
 
341
            $make_command = getenv('MAKE');
-
 
342
        } else {
376
 
343
            $make_command = 'make';
377
        $make_command = getenv('MAKE') ? getenv('MAKE') : 'make';
344
        }
378
 
345
        $to_run = array(
379
        $to_run = array(
346
            $configure_command,
380
            $configure_command,
347
            $make_command,
381
            $make_command,
348
            "$make_command INSTALL_ROOT=\"$inst_dir\" install",
382
            "$make_command INSTALL_ROOT=\"$inst_dir\" install",
349
            "find \"$inst_dir\" -ls"
383
            "find \"$inst_dir\" | xargs ls -dils"
350
            );
384
            );
351
        if (!file_exists($build_dir) || !is_dir($build_dir) || !chdir($build_dir)) {
385
        if (!file_exists($build_dir) || !is_dir($build_dir) || !chdir($build_dir)) {
352
            return $this->raiseError("could not chdir to $build_dir");
386
            return $this->raiseError("could not chdir to $build_dir");
353
        }
387
        }
354
        putenv('PHP_PEAR_VERSION=1.5.1');
388
        putenv('PHP_PEAR_VERSION=1.10.1');
355
        foreach ($to_run as $cmd) {
389
        foreach ($to_run as $cmd) {
356
            $err = $this->_runCommand($cmd, $callback);
390
            $err = $this->_runCommand($cmd, $callback);
357
            if (PEAR::isError($err)) {
391
            if (PEAR::isError($err)) {
Line 366... Line 400...
366
        if (!($dp = opendir("modules"))) {
400
        if (!($dp = opendir("modules"))) {
367
            chdir($old_cwd);
401
            chdir($old_cwd);
368
            return $this->raiseError("no `modules' directory found");
402
            return $this->raiseError("no `modules' directory found");
369
        }
403
        }
370
        $built_files = array();
404
        $built_files = array();
371
        $prefix = exec("php-config --prefix");
405
        $prefix = exec($this->config->get('php_prefix')
-
 
406
                        . "php-config" .
-
 
407
                       $this->config->get('php_suffix') . " --prefix");
372
        $this->_harvestInstDir($prefix, $inst_dir . DIRECTORY_SEPARATOR . $prefix, $built_files);
408
        $this->_harvestInstDir($prefix, $inst_dir . DIRECTORY_SEPARATOR . $prefix, $built_files);
373
        chdir($old_cwd);
409
        chdir($old_cwd);
374
        return $built_files;
410
        return $built_files;
375
    }
411
    }
Line 376... Line -...
376
 
-
 
377
    // }}}
-
 
378
    // {{{ phpizeCallback()
-
 
379
 
412
 
380
    /**
413
    /**
381
     * Message callback function used when running the "phpize"
414
     * Message callback function used when running the "phpize"
382
     * program.  Extracts the API numbers used.  Ignores other message
415
     * program.  Extracts the API numbers used.  Ignores other message
383
     * types than "cmdoutput".
416
     * types than "cmdoutput".
Line 408... Line 441...
408
                //$this->log(1, $msg);
441
                //$this->log(1, $msg);
409
            }
442
            }
410
        }
443
        }
411
    }
444
    }
Line 412... Line -...
412
 
-
 
413
    // }}}
-
 
414
    // {{{ _runCommand()
-
 
415
 
445
 
416
    /**
446
    /**
417
     * Run an external command, using a message callback to report
447
     * Run an external command, using a message callback to report
418
     * output.  The command will be run through popen and output is
448
     * output.  The command will be run through popen and output is
419
     * reported for every line with a "cmdoutput" message with the
449
     * reported for every line with a "cmdoutput" message with the
Line 449... Line 479...
449
            }
479
            }
450
        }
480
        }
451
        if ($callback && isset($olddbg)) {
481
        if ($callback && isset($olddbg)) {
452
            $callback[0]->debug = $olddbg;
482
            $callback[0]->debug = $olddbg;
453
        }
483
        }
454
        if (is_resource($pp)) {
-
 
-
 
484
 
455
            $exitcode = pclose($pp);
485
        $exitcode = is_resource($pp) ? pclose($pp) : -1;
456
        } else {
-
 
457
            $exitcode = -1;
-
 
458
        }
-
 
459
        return ($exitcode == 0);
486
        return ($exitcode == 0);
460
    }
487
    }
Line 461... Line -...
461
 
-
 
462
    // }}}
-
 
463
    // {{{ log()
-
 
464
 
488
 
465
    function log($level, $msg)
489
    function log($level, $msg, $append_crlf = true)
466
    {
490
    {
467
        if ($this->current_callback) {
491
        if ($this->current_callback) {
468
            if ($this->debug >= $level) {
492
            if ($this->debug >= $level) {
469
                call_user_func($this->current_callback, 'output', $msg);
493
                call_user_func($this->current_callback, 'output', $msg);
470
            }
494
            }
471
            return;
495
            return;
472
        }
496
        }
473
        return PEAR_Common::log($level, $msg);
497
        return parent::log($level, $msg, $append_crlf);
474
    }
-
 
475
 
-
 
476
    // }}}
498
    }
477
}
-
 
478
 
-