#74 closed defect (released)
segmentation faults when passing improper vars to functions (php-binding)
Reported by: | alec | Owned by: | Olly Betts |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Xapian-bindings | Version: | 0.9.4 |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Operating System: | Microsoft Windows |
Description
basically any php-xapian binding will cause the program to segmentation fault if you pass 'null' to it instead of the pointer it expects.
of course passing null to it will cause the program not to work as is should any way, but rather than resulting in a segmentation fault, it should result in a nice critical php error or so.
example: <? new_Enquire(null); MSet_get_matches_estimated(null); ?>
Change History (2)
comment:1 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 19 years ago
Operating System: | → Microsoft Windows |
---|---|
Resolution: | fixed → released |
Fixed in 0.9.5
Note:
See TracTickets
for help on using tickets.
This is a bug in SWIG's PHP typemaps. I've added a fix in Xapian's SVN, and I'll send a patch to the SWIG team.