简体   繁体   中英

PHP causes segmentation fault when executing an mssql_query

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

$result_sql = mssql_query($sql);

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.

I got the same problem but launching a mssql stored procedure with PDO statement (statement->prepare / statement->bindParam / statement->execute())

it seems to be a php bug from the library

must notice though that if i change the stored procedure removing some try/catch and other parts, it works smoothly..

i'll try to split the procedure in few procedures or viceversa (because the original one used to call other SP) hope to let you know soon

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM