Commit cc0c93a
authored
Update ibase_query.c
Crash fix:
The current code causes hardly debugable PHP.exe crashes in case when PHP developer does not release query results in time.
This is just minimal fix of just one such a scenario.
Architectural fix would be better of course - like throwing regular PHP exception instead of crashing PHP.exe.
Case FIXED:
Avoid memory overwrites of released query or result (the memory allready allocated by somebody else) or in case of more cursors opened for one query.1 parent 23e2928 commit cc0c93a
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
| |||
167 | 170 | | |
168 | 171 | | |
169 | 172 | | |
170 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
171 | 176 | | |
172 | 177 | | |
173 | 178 | | |
| |||
0 commit comments