Changes between Initial Version and Version 1 of Ticket #3065
- Timestamp:
- Jul 7, 2009, 12:23:37 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3065
- Property Cc added
- Property Owner changed from to
- Property Milestone → 5.4.2 release
-
Ticket #3065 – Description
initial v1 2 2 3 3 Hardcoding that condition to true, mapscript/php3/php_regex.c failed to compile since its 4 {{{ 4 5 #include "regex/regex_extra.h" 5 6 #include "regex/regex.h" 7 }}} 6 8 files didn't exist. After commenting those out and adding 9 {{{ 7 10 #include "ext/ereg/regex/regex.h" 11 }}} 8 12 things compiled, but apache processes would die with glibc free() errors. In mapscript/php3/php_regex.c, by commenting out the call to regexec() in ms_regexec() (hardcoding return -1), and the calls to regfree() and free() in ms_regfree(), processes no longer segfault. 9 13 … … 11 15 12 16 I'm not sure if this matters, but I also changed API_EXPORT #define stuff in mapregex.h to better match that in php's php/ext/ereg/regex/regex.h, which includes an extra clause for 17 {{{ 13 18 #elif defined(__GNUC__) && __GNUC__ >= 4 14 19 #define API_EXPORT(type) __attribute__ ((visibility("default"))) type 20 }}}