Re: Querypath and php 5.2

39 views
Skip to first unread message

TechnoSophos

unread,
Feb 19, 2013, 11:01:09 AM2/19/13
to support-...@googlegroups.com
QueryPath 3.0 will definitely NOT work with PHP 5.2.

All of the QueryPath 2.x releases will work, though.

The 3.x series is redesigned for PHP 5.3+, and uses namespaces, anonymous functions, and new SPL features. However, feature-for-feature, there is very little difference between the latest 2.x release and the latest 3.x release.

-- 
TechnoSophos
Twitter: @technosophos
Sent with Sparrow

On Tuesday, February 19, 2013 at 7:23 AM, Henrique Kieckbusch wrote:

Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /var/www/vhosts/company/httpdocs/2013/inc/qp.php on line 61

The line is:

spl_autoload_register(function ($klass) {
   $parts = explode('\\', $klass);
      if ($parts[0] == 'QueryPath') {
         $path = __DIR__ . '/' . implode('/', $parts) . '.php';
         if (file_exists($path)) {
              require $path;
          }
    }
}


Do you know how to fix this to work in php 5.2?

--
You received this message because you are subscribed to the Google Groups "support-querypath" group.
To unsubscribe from this group and stop receiving emails from it, send an email to support-queryp...@googlegroups.com.
To post to this group, send email to support-...@googlegroups.com.
Visit this group at http://groups.google.com/group/support-querypath?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages