#444 [Com]: /usr/local/bin/pear: segmentation fault
| From: | sw at telemeida dot ch | Date: | Wed, 17 Dec 2003 10:23:31 +0000 |
| Subject: | #444 [Com]: /usr/local/bin/pear: segmentation fault | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-24490@lists.php.net to get a copy of this message | ||
ID: 444
Comment by: sw at telemeida dot ch
Reported By: sw at telemedia dot ch
Status: Bogus
Bug Type: Bug System
Operating System: OpenBSD
PHP Version: Irrelevant
New Comment:
ok, got that. thanks again for your help!
Cheers,
-S
Previous Comments:
------------------------------------------------------------------------
[2003-12-17 05:22:20] sw at telemeida dot ch
i just installed the latest pear version.
i checked the HEAD version of the pear script in the CVS:
http://cvs.php.net/co.php/php-src/pear/scripts/pear.sh?r=1.2.2.2
php is called with -C and will, therefore still crash with php 4.2
versions.
with -c /path/to/ini or by just ommitting the -C arg it works fine.
my question: why does the php binary crash on OpenBSD when the -C arg
is supplied (other unknown args will just display the php -h witouth
dieing)?
would i have to install a newer php version then (something past 3.3)?
Cheers,
-Simon
------------------------------------------------------------------------
[2003-12-17 05:19:23] pajoye@php.net
>OpenBSD has a very clean directory layout (other than eg. >linux).
this is the reason why the package will most
>probably rather be installed trough the package manager
>than >from source (due to the preset installation paths >for lib, >
binm, etc...).
Sure, *BSD are clean systems. But the problem is more about the package
status and the too long delay between new ports (the same apply on
debian). I do not use *BSD and no special clue about ports. So if you
know someone that have both the time and the clue to maintain uptodate
ports of php and/or pear feel free to send us a link to the download
page/uri.
> altough the -C option is also not available).
Requires an update of php too. Please note we are now on the 4.3.4.
pierre
------------------------------------------------------------------------
[2003-12-17 05:10:07] sw at telemedia dot ch
thanks for your help pierre.
maybe this is something for the OpenBSD packager. the problem (imho) is
that ppl with few or no knowledge of php/pear (maybe a sys admin who
installs the php package) may not find this problem quickly ...
>BSD port, even if it is an usefull system, should
>actually not be used to install pear (and/or php but
>this is another topic).
OpenBSD has a very clean directory layout (other than eg. linux). this
is the reason why the package will most probably rather be installed
trough the package manager than from source (due to the preset
installation paths for lib, binm, etc...).
since the pear script itself came originally from here (altough its
old) i tought i'd mention the problem (with the same version on linux i
don't get a segmentation fault, altough the -C option is also not
available).
Cheers,
-S
------------------------------------------------------------------------
[2003-12-17 05:02:10] pajoye@php.net
Sorry, but your problem does not imply a bug in PEAR itself. For a
list of more appropriate places to ask for help using PEAR, please
visit http://pear.php.net/support.php as this bug
system is not the
appropriate forum for asking support questions.
Thank you for your interest in PEAR.
OK, my thought was right.
Please upgrade your pear installation using go-pear. See the pear
manual for the procedure. BSD port, even if it is an usefull system,
should actually not be used to install pear (and/or php but this is
another topic).
I set it as bogus(not a developer issue) as we not responsible of
external packages or installation tools. Contact openBSD php
maintainers to get their ports uptodated if you still like to use
them.
thanks for your interest,
pierre
------------------------------------------------------------------------
[2003-12-17 04:57:41] sw at telemedia dot ch
--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
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/444
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=444&edit=1