PHP Classes

Problem with PHP 5.1.1

Recommend this page to a friend!

      PHP Email validation  >  PHP Email validation package blog  >  How to Correct Email ...  >  All threads  >  Problem with PHP 5.1.1  >  (Un) Subscribe thread alerts  
Subject:Problem with PHP 5.1.1
Summary:My sites started to giver error after upgrade of PHP
Messages:4
Author:Mario Bittencourt
Date:2006-01-04 22:29:32
Update:2006-01-05 16:24:43
 

  1. Problem with PHP 5.1.1   Reply   Report abuse  
Picture of Mario Bittencourt Mario Bittencourt - 2006-01-04 22:29:32
Hi,

all my sites which now are hosted in a PHP 5.1.1 server started to complain about

Fatal error: Call to undefined function GetMXRR() in /var/www/html/.../php/email/email_validation.php on line 46

When I switched to the new version of the email_validation.php the error message was gone.

I wonder why...

  2. Re: Problem with PHP 5.1.1   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2006-01-05 00:07:49 - In reply to message 1 from Mario Bittencourt
I just tried it with PHP 5.1.1 under Linux and it works perfectly.

Could you possibly be using Windows?

  3. Re: Problem with PHP 5.1.1   Reply   Report abuse  
Picture of Mario Bittencourt Mario Bittencourt - 2006-01-05 12:44:44 - In reply to message 2 from Manuel Lemos
Hi,

No I am using Linux.

phpInfo

PHP Version 5.1.1

System Linux myserver.com 2.6.12-1.1381_FC3 #1 Fri Oct 21 03:46:55 EDT 2005 i686
Build Date Dec 23 2005 16:12:38
Configure Command './configure' '--with-mysql' '--with-gd' '--with-apxs2' '--with-xml' '--with-ftp' '--enable-session' '--enable-trans-sid' '--with-zlib' '--enable-inline-optimization' '--with-mcrypt=/usr/local' '--with-imap=/usr/include/imap' '--with-kerberos' '--enable-sigchild' '--with-gettext' '--with-freetype' '--with-ttf' '--with-ftp' '--enable-ftp' '--with-jpeg-dir=/usr' '--with-imap-ssl=/usr/include/openssl' '--with-xpm-dir=/usr/X11R6' '--enable-gd-native-ttf' '--with-png' '--with-freetype-dir=/usr' '--with-openssl=/usr' '--with-openssl-dir=/usr/' '--with-pgsql'

  4. Re: Problem with PHP 5.1.1   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2006-01-05 16:24:43 - In reply to message 3 from Mario Bittencourt
This is not really a problem with the class.

If the getmxrr function is missing in your PHP build maybe it is a bug in that PHP version or detection of libraries under your Linux version. I use SuSE Linux 9.0 that uses Kernel 2.4.21 and it works well.

Either way, you should report that to the PHP team and downgrade to a version that does not miss that function.