I am running PHP 4.4.4 on Slackware 10. 

> -----Original Message-----
> From: Vahan Yerkanian [mailto:[EMAIL PROTECTED] 
> Sent: February 17, 2007 11:58 AM
> To: php-general@lists.php.net
> Subject: Re: [PHP] LOL, preg_match still not working.
> 
> Are you running under FreeBSD 6.2 and/or upgraded recently 
> from 5.2.1 to 
> 5.2.2?
> 
> I had the same problem on FreeBSD 6.2, with php5 installed from ports 
> collection after I portupgraded to 5.2.1.
> 
> For me it appeared to be some kind weird misconfiguration 
> problem that 
> happened during the portupgrade...
> 
> I had to:
> 
> pkg_delete -rv "php5*"
> rm -rf /var/db/ports/php5*
> rm -rf /usr/local/lib/*
> cd /usr/ports/lang/php5
> make install clean
> cd /usr/ports/lang/php5-extensions
> make install clean
> 
> A bit harsh, but all of the preg_* errors disappeared since then.
> 
> HTH,
> Vahan
> 
> 
> Steffen Ebermann wrote:
> > Addendum: I encountered a problem when the string contains 
> linebreaks. Maybe
> > adding \n\r into the brackets fixes your problem.
> > 
> > 
> > On Sat, Feb 17, 2007 at 09:27:59AM -0500, Beauford wrote:
> >> Hi,
> >>
> >> I previously had some issues with preg_match and many of 
> you tried to help,
> >> but the same  problem still exists. Here it is again, if 
> anyone can explain
> >> to me how to get this to work it would be great - 
> otherwise I'll just remove
> >> it as I just spent way to much time on this.
> >>
> >> Thanks
> >>
> >> Here's the code.
> >>
> >>    if(empty($comment)) { $formerror['comment'] = nocomments; 
> >>    }
> >>    elseif(!preg_match('|[EMAIL PROTECTED]&*();:_.\\\\ /\t-]+$|',
> >> $comment)) {
> >>                            $formerror['comment'] = invalidchars;
> >>    }       
> >>
> >> This produces an error, which I believe it should not.
> >>
> >> Testing 12345. This is a test of the emergency broadcast system.
> >>
> >> WAKE UP!!!!!!
> >>
> >> -- 
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> > 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to