Want more features on Pastebin? Sign Up, it's FREE!

PMA_SQP_parse() '//' bug

By: dstorm on Jun 9th, 2014  |  syntax: None  |  size: 1.12 KB  |  views: 253  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. With //
  2.  
  3. array (size=4)
  4.   'raw' => string 'CREATE TABLE x //' (length=17)
  5.   0 =>
  6.     array (size=3)
  7.       'type' => string 'alpha' (length=5)
  8.       'data' => string 'CREATE' (length=6)
  9.       'pos' => int 6
  10.   1 =>
  11.     array (size=3)
  12.       'type' => string 'alpha' (length=5)
  13.       'data' => string 'TABLE' (length=5)
  14.       'pos' => int 12
  15.   2 =>
  16.     array (size=3)
  17.       'type' => string 'alpha' (length=5)
  18.       'data' => string 'x' (length=1)
  19.       'pos' => int 14
  20.  
  21. Without //
  22.  
  23. array (size=5)
  24.   'raw' => string 'CREATE TABLE x ' (length=15)
  25.   0 =>
  26.     array (size=4)
  27.       'type' => string 'alpha_reservedWord' (length=18)
  28.       'data' => string 'CREATE' (length=6)
  29.       'pos' => int 6
  30.       'forbidden' => boolean true
  31.   1 =>
  32.     array (size=4)
  33.       'type' => string 'alpha_reservedWord' (length=18)
  34.       'data' => string 'TABLE' (length=5)
  35.       'pos' => int 12
  36.       'forbidden' => boolean true
  37.   2 =>
  38.     array (size=4)
  39.       'type' => string 'alpha_identifier' (length=16)
  40.       'data' => string 'x' (length=1)
  41.       'pos' => int 14
  42.       'forbidden' => boolean false
  43.   'len' => int 3
clone this paste RAW Paste Data