Click to See Complete Forum and Search --> : JSON complaint when i try to run php command line


sneakyimp
05-01-2007, 03:14 PM
I tried to run my script from the command line on a Debian Linux machine and got an error:

server:/home/user1/public# php -q chump.php
PHP Warning: Module 'json' already loaded in Unknown on line 0
PG TEST<br>query failed<br>&nbsp;query:INSERT INTO test SET value='foobar'<br>&nbsp;error:ERROR: syntax error at or near "SET" at character 18Segmentation fault


that segmentation fault part doesn't sound good. i tried running this very simple script and got similar output:

<?
echo 'foobar';
?>

the result:

server:/home/user1/public# php -q chump.php
PHP Warning: Module 'json' already loaded in Unknown on line 0
foobarserver:/home/user1/public#


Is there something wrong with my php install or config?