Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Bug Reports » Unexpected "Cannot extract token from" Error Due to Tabs / Newlines
Re: Unexpected "Cannot extract token from" Error Due to Tabs / Newlines / Spaces [message #4611 is a reply to message #4609] Sun, 26 October 2014 15:47 Go to previous messageGo to previous message
kong is currently offline  kong
Messages: 90
Registered: December 2011
Member
Just discovered another case that my original proposal did not solve.
    $where	= " test_id < 3";
(With a space before 'test_id')

This results in
Fatal Error: Cannot extract token from: ' test_id < 3' (# 256)
Error in line 6993 of file 'D:\Pet\UwAmp\www\rad186\includes\include.library.inc'.

To take care of such cases, I would like to modify my original proposal to
...
$input = $where;

// Add this line to solve "Cannot extract token from" error:
$where = trim(preg_replace("/\s+/", " ", $where));

$output = array();
while (!empty($where)) {
...

[Updated on: Sun, 26 October 2014 22:27]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Unexpected "Query was empty" Error Due to Space / Newline
Next Topic: Semicolon in Strings within SQL Multi Query String
Goto Forum:
  


Current Time: Mon Dec 23 02:08:05 EST 2024

Total time taken to generate the page: 0.00938 seconds