Topic: Install.php fails at line 327

install.php
    if (strlen($email) > 50 || !preg_match('/^(([^<>()[\]\\.,;:\s@"\']+(\.[^<>()[\]\\.,;:\s@"\']+)*)|("[^"\']+"))@((\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\])|(([a-zA-Z\d\-]+\.)+[a-zA-Z]{2,}))$/', $email))
        error('The administrator e-mail address you entered is invalid. Please go back and correct.');

apache error log:

PHP Warning:  preg_match: internal pcre_fullinfo() error -3 in /web/www/public/rtb/htdocs/forum/install.php on line 327, referer: http://www3.raisethebar.com/forum/install.php


Browser:

An error occured.

PunBB reported: The administrator e-mail address you entered is invalid. Please go back and correct.


my email:

bill@tothept.com

Re: Install.php fails at line 327

http://bugs.php.net/bug.php?id=31501&edit=2
In other words, it would appear you're not using the PCRE library bundled with PHP

Re: Install.php fails at line 327

Smartys wrote:

http://bugs.php.net/bug.php?id=31501&edit=2
In other words, it would appear you're not using the PCRE library bundled with PHP

Perhaps not. I'm installing onto Fedora Core 4.

# rpm -q php
php-5.0.4-10.5


Perhaps this also explains why I get an HTTP REFERER error from admin_options.php?

Maybe the bug is that install.php does not test its environment to be sure the required libraries are present?

4 (edited by Smartys 2006-04-25 23:33)

Re: Install.php fails at line 327

https://bugzilla.redhat.com/bugzilla/sh … ?id=158729

> So must be something wrong with my apache, its self compiled

That's likely your problem.  The Fedora httpd package is patched to use the
system pcre library - otherwise another bundled copy of pcre gets linked in.

And no, it's not PunBB's fault. The function exists. It's not PunBB's job to check that the libraries linked to Apache and PHP are valid (although Rickard should probably put in some sort of check to make sure that preg expressions are supported)

Re: Install.php fails at line 327

Yep.  My ./configure was at fault.