Closed codercms closed 3 years ago
And also when segfault doesn't happens with fetchAssoc method it always returns false.
@matyhtf Finally I found the cause of Segmentation fault. It was a simple typo in the code of php_pgsql_fetch_hash function.
Could you review my PR when you have free time - https://github.com/swoole/ext-postgresql/pull/36/files ?
The problem happens with master branch. I have wrote a simple code to demonstrate the problem.
Segmentation fault occurs really random. And it happens only when calling single row fetch functions. When I call fetchAll - segmentation fault doesn't happens.
Here is what does strace say:
Here is what does gdb say:
@matyhtf can you help with debug?