#444 [Opn]: /usr/local/bin/pear: segmentation fault

From: Date: Wed, 17 Dec 2003 09:57:41 +0000
Subject: #444 [Opn]: /usr/local/bin/pear: segmentation fault
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24485@lists.php.net to get a copy of this message
ID: 444 User updated by: sw at telemedia dot ch Reported By: sw at telemedia dot ch Status: Open Bug Type: Bug System Operating System: OpenBSD PHP Version: Irrelevant New Comment: --shell <b2-143:/usr/ports/www/php4/extensions/pkg>#php -v 4.2.3 <b2-143:/usr/ports/www/php4/extensions/pkg>#pear -V unrecognized option -- V Usage: pear [options] command [command-options] <parameters> Type "pear help options" to list all options. Type "pear help <command>" to get the help for the specified command. Commands: login logout config-show config-get config-set install uninstall upgrade package package-info package-list package-validate cvstag list-installed shell-test remote-package-info list-upgrades list-remote-packages --shell there is no -V parameter for pear: ---snip foreach ($opts as $opt) { $param = !empty($opt[1]) ? $opt[1] : true; switch ($opt[0]) { case 'd': list($key, $value) = explode('=', $param); $config->set($key, $value, 'user'); break; case 'D': list($key, $value) = explode('=', $param); $config->set($key, $value, 'system'); break; case 's': $store_user_config = true; break; case 'S': $store_system_config = true; break; case 'u': $config->remove($param, 'user'); break; case 'v': $config->set('verbose', $verbose + 1); break; case 'q': $config->set('verbose', $verbose - 1); break; default: // all non pear params goes to the command $cmdopts[$opt[0]] = $param; break; } } --- snip i got this from PEAR.php: $Id: PEAR.php,v 1.32.2.2 2002/04/09 19:04:07 ssb Exp $ Cheers, -S Previous Comments: ------------------------------------------------------------------------ [2003-12-17 04:47:32] pajoye@php.net > the latest php package available with OpenBSD is 3.2.3. I do not have BSD installed here. Please run these commands and paste the result here. pierre ------------------------------------------------------------------------ [2003-12-17 04:36:32] sw at telemedia dot ch the latest php package available with OpenBSD is 3.2.3. ------------------------------------------------------------------------ [2003-12-17 04:30:15] pajoye@php.net We need the php version and the pear version. you can get it using the folliwing command: PHP: $> php -v PEAR $> pear -V That said, I doubt BSD port are a good way to install pear (or php ;) ). They are outdated most of the times. pierre ------------------------------------------------------------------------ [2003-12-17 03:58:08] sw at telemedia dot ch Description: ------------ the latest php package available with OpenBSD is 3.2.3. after installing the package and pear from the OpenBSD port the pear script dies with: Reproduce code: --------------- <b2-143:/usr/ports/www/php4/extensions/pkg>#pear --help Expected result: ---------------- <b2-143:/usr/ports/www/php4/extensions/pkg>#pear --help Usage: pear [options] command [command-options] <parameters> Type "pear help options" to list all options. Type "pear help <command>" to get the help for the specified command. Commands: login logout config-show config-get config-set install uninstall upgrade package package-info package-list package-validate cvstag list-installed shell-test remote-package-info list-upgrades list-remote-packages Actual result: -------------- Segmentation fault. when i change /usr/local/bin/pear from: #!/usr/local/bin/php -Cq <?php // -*- PHP -*- to: #!/usr/local/bin/php -cq <?php // -*- PHP -*- it works fine. # php -h does not offer a '-C' argument. ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=444&edit=1

« previous php.pear.dev (#24485) next »