* Thus wrote Jackson Miller ([EMAIL PROTECTED]): > I am running a PHP script from the command line that is returning > "Segmentation Fault". I run a lot of script from the command line and have > never seen this before. I don't even know where to begin.
http://bugs.php.net/how-to-report.php > > I know that PHP is set up to run scripts from the command line and plent of > other scripts run. > > This particular script is not doing anything out of the ordinary. It is > opening a database connection, opening a .csv file and inserting rows into > the database. How in the world could this Seg Fault? Obtain a backtrace of the program (assuming your on unix): Run gdb with php as the program: > gdb /path/to/php when the gdb prompt somes up type the word 'run' with the options and filename you would normally would pass to php: (gdb) run [options] phpfile.php Once it finishes with your crash then type 'bt': (gdb) bt To kinda understand what this all means you can read this documentation under 'Locating which function call cases fault': http://bugs.php.net/bugs-generating-backtrace.php HTH, Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php