Page 1 of 1

compat.inc.php Error line 99

Posted: Sun Dec 03, 2006 11:42 pm
by ranman
Hi,

I found thsi error after my hosting server run some upgrades. And I thought it was due to the new mysql version.


Line 99 is as follow:

Code: Select all

if (extension_loaded('filter') && input_name_to_filter(ini_get('filter.default')) !== FILTER_UNSAFE_RAW) {
then....

just correct the line in the following way:

Code: Select all

if (extension_loaded('`filter`') && input_name_to_filter(ini_get('`filter.default`')) !== FILTER_UNSAFE_RAW) {
And the blog will work again.

Serendipity version:

1.0.4

I hope it helps.

Gonzalo.

Re: compat.inc.php Error line 99

Posted: Mon Dec 04, 2006 9:55 am
by Arnold Nijboer

Code: Select all

if (extension_loaded('`filter`') && input_name_to_filter(ini_get('`filter.default`')) !== FILTER_UNSAFE_RAW) {
doesn't it do the same as without quotes? like:

Code: Select all

if (extension_loaded(filter) && input_name_to_filter(ini_get(filter.default)) !== FILTER_UNSAFE_RAW) {
Or with different quotes:

Code: Select all

if (extension_loaded("'filter'") && input_name_to_filter(ini_get("'filter.default'")) !== FILTER_UNSAFE_RAW) {
looks like it's intergrated in some other code.
but if it works it's fine right :D

Greatings
Arnold Nijboer

Re: compat.inc.php Error line 99

Posted: Mon Dec 04, 2006 10:10 am
by garvinhicking
Hi!

Hm, the code snippet you posted does not come from serendipity 1.0.4.

There we use this (which was the reason for the 1.0.3 release!):

Code: Select all

if (extension_loaded('filter') && function_exists('input_name_to_filter') && input_name_to_filter(ini_get('filter.default')) !== FILTER_UNSAFE_RAW) {
As Arnold wrote, the use of `filter` quotes actually defies the whole system ;)

Best regards,
Garvin

Re: compat.inc.php Error line 99

Posted: Wed Dec 06, 2006 7:11 pm
by ranman
garvinhicking wrote:Hi!

Hm, the code snippet you posted does not come from serendipity 1.0.4.

There we use this (which was the reason for the 1.0.3 release!):
Hi Garvin.

Sorry, I had worked so much between releases and forums/portals.. I messed up version. I was really serious, I just tried to approximated maybe to closest version.. And that is what I discovered, thinking was useful.

Thanks

Gonzalo.