Segmentation fault when running PHP script from CLI, works fine as cron job-Collection of common programming errors
I have a PHP script that reads a file via fgetcsv
through PHP’s zip://
wrapper. This works fine locally and when run on production via a cron job. It fails with a Segmentation fault when invoked on production via CLI though, apparently at the end of reading the file when fgetcsv
returns false
.
The relevant parts of the script:
#!/usr/local/bin/php5
Originally posted 2013-11-27 12:10:18.