Cannot save new backup job

Whenever, I click Save after creating a new backup job (under Backup and Restore module, it just gives me a white screen. Running amportal a dbug gives me the following error:

==> /var/log/httpd/error_log <==
[Wed Sep 10 10:37:30 2014] [error] [client] PHP Fatal error:  Call to undefined function filter_var() in /var/www/html/admin/modules/backup/ on line 239, referer:

Unfortunately, it doesn’t mean much to me so I’m hoping somebody else has run into this problem.

What PHP version do you have?

Running PHP version 5.1.6.

filter_var() starts at php 5.2

You can add the pecl package if you can’t bump your php

Good to know. I don’t think it is safe for me to upgrade my PHP as I’ve read somewhere that some parts of our asterisk version is not compatible with newer PHP.

Do you have instructions on how to install the pecl package?

No you really need to upgrade php. FreePBX 2.11 has known issues with 5.1 and 5.2 and FreePBX 12 requires PHP 5.3

Ok I just upgraded my PHP to 5.3…and it broke my FreePBX installation. Can no longer login to web interface. Good thing I have a backup to revert to.

I guess when FreePBX 12 is released, I will set up a new box and set up a separate instance. That way I can migrate gracefully.

I am running PHP 5.3.2 Zend Engine 2.3.0 Asterisk FreePBX and Centos SHMZ 6.5 32BIT.
Backups Do not FTP over to the FTP server. But I do find the Backup on the system. Over 2 GIG. Doing some looking I found that the Limits to the FTP is the 32BIT system. I had to DIG thought the system to find the location of the Backups none of the locations on the internet are the location of the backup files for FTP. The Backup are working as far as making the files. The work around I did was to split the FULL backup into 3 backups. Making the files smaller to FTP.