PHP Classes

Bugs

Recommend this page to a friend!

      LINQ In PHP  >  All threads  >  Bugs  >  (Un) Subscribe thread alerts  
Subject:Bugs
Summary:Bugs found
Messages:2
Author:Allen Chak
Date:2010-05-04 07:25:30
Update:2010-05-04 07:43:38
 

  1. Bugs   Reply   Report abuse  
Picture of Allen Chak Allen Chak - 2010-05-04 07:25:30
Fail to run the program, run on PHP 5.1.6

<?php
$Linq->Query("SELECT key Animal Name,value As Sound FROM myArray.animals ORDER BY Sound DESC");
?>



Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 3 in /linq155/D3Linq.php on line 247



Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 3 in /linq155/D3Linq.php on line 266



Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 3 in /linq155/D3Linq.php on line 276



Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 3 in /linq155/D3Linq.php on line 247



Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 3 in /linq155/D3Linq.php on line 266



Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 3 in /linq155/D3Linq.php on line 276

#010 Invalid SQL

  2. Re: Bugs   Reply   Report abuse  
Picture of Tufan Baris YILDIRIM Tufan Baris YILDIRIM - 2010-05-04 07:43:38 - In reply to message 1 from Allen Chak
offset name in regexp as (?<name>) is not supported by your php version

5.2.2 Named subpatterns now accept the syntax (?<name>) and (?'name') as well as (?P<name>). Previous versions accepted only (?P<name>).


if you can upgrade your php to 5.2.2 it will ve solved.

or you can change this code

"(is_numeric($wagonName) ? null: '?<'.$wagonName.'>')"

to this

"(is_numeric($wagonName) ? null: '?P<'.$wagonName.'>')"


its on line 379