Segmentation fault on setup
Posted: Wed Apr 30, 2008 12:42 pm
Trying to setup s9y the page was always offered for download and segmentation faults appeared in the apache error log. After some research I found out that the line 24
in include/lang.inc.php caused the problem. For some reason $serendipity['lang'] was not set and the failing include broke php. This happened with PHP 4.4.8 and 5.2.0, serendipity version is 1.3.1.
Adding an is_file() before trying to include fixed the problem and is IMO quite more elegant than @include.
Code: Select all
if (@include(S9Y_INCLUDE_PATH . 'lang/' . $charset . 'serendipity_lang_'. $serendipity['lang'] .'.inc.php') ) {Adding an is_file() before trying to include fixed the problem and is IMO quite more elegant than @include.