PHP causes segmentation fault when executing an mssql_query

时间:2016-02-12 20:18:21

标签: php sql-server

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.

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,但启动了带有PDO语句的mssql存储过程(statement-> prepare / statement-> bindParam / statement-> execute())

它似乎是图书馆的php bug

必须注意,如果我更改存储过程删除一些try / catch和其他部分,它可以顺利运行..

我会尝试在几个程序中分割程序或反之(因为原来用来调用其他SP) 希望能尽快通知你