I have a shell program that loops a PHP script. The PHP script is long and has many includes and defined functions, but one function calls
columnCount
The $sql code is executed in MSSQL query analyzer and runs successfully. The function, when called independently from a small php script works. When adding it to the large script, PHP errors with a segmentation fault. How would one troubleshoot the segmentation fault? PHP usually displays errors encountered when display_errors(); is set to E_NOTICE, but no error description is displayed when PHP segfaults.
Thanks for any advice.
答案 0 :(得分:0)
我遇到了同样的问题,但启动了带有PDO语句的mssql存储过程(statement-> prepare / statement-> bindParam / statement-> execute())
它似乎是图书馆的php bug
必须注意,如果我更改存储过程删除一些try / catch和其他部分,它可以顺利运行..
我会尝试在几个程序中分割程序或反之(因为原来用来调用其他SP) 希望能尽快通知你