Problems with PHP filter extension.

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

carnogaunt
New php-forum User
New php-forum User
Posts: 1
Joined: Mon Mar 12, 2012 4:58 pm

Problems with PHP filter extension.

Postby carnogaunt » Mon Mar 12, 2012 5:51 pm

Hello. I'm running PHP 5.3.8 through Apache 2.2.21 on FreeBSD.

I made a PHP form to send email and I got an error stating that the function filter_var() was undefined. I looked at my phpinfo() page and didn't see any information for the filter extension, so my first assumption was that it was not installed with the rest of PHP. I looked for assistance in the PHP manual and it said that the filter extension should be enabled by default.

I installed PHP from the FreeBSD port, which includes the source code for the filter extension, but it does not look like it was compiled (or at least I couldn't find the filter.so file anywhere on my computer). I tried to compile it and got an error code 1. I was able to successfully compile it from a PHP 5.4.0 source (yielding a filter.so file), but PHP 5.3.8 does not load it on startup because the module APIs do not match.

I don't really know where to go from here; any guidance would be useful. Thanks in advance.

Return to “PHP Installation”

Who is online

Users browsing this forum: No registered users and 2 guests