当我在 shell (Linux) 中键入时:
php index.php
有时 PHP 脚本终止,我收到一条错误消息:
分段故障
有时它工作正常,有时我得到一个错误
在 php 脚本中,它包括 PDO (mysql)、Curl、一些循环和“Simple HTML Dom”库
PHP版本:
username [~/www/]# php -v
PHP 5.2.9 (cli) (built: Oct 9 2010 02:01:46)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with the ionCube PHP Loader v3.3.20, Copyright (c) 2002-2010, by ionCube Ltd., and
with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technolog
如何解决这个问题?我在 Windows 7 (PHP 5.3.0) 上测试时没有问题。