|
@@ 1859-1859 (lines=1) @@
|
| 1856 |
|
$params = $this->parse($paramstr, $ptr, strlen($paramstr), $params, 'function', $ptr); |
| 1857 |
|
} |
| 1858 |
|
|
| 1859 |
|
if ($this->debug) { |
| 1860 |
|
echo 'PARAM PARSED, POINTER AT ' . $ptr . ' (' . substr($paramstr, $ptr - 1, 3) . ')' . "\n"; |
| 1861 |
|
} |
| 1862 |
|
} |
|
@@ 2409-2415 (lines=7) @@
|
| 2406 |
|
// replace useless brackets by dot accessed vars and strip enclosing quotes if present |
| 2407 |
|
$key = preg_replace('#\[(["\']?)([^$%\[.>-]+)\1\]#', '.$2', $key); |
| 2408 |
|
|
| 2409 |
|
if ($this->debug) { |
| 2410 |
|
if ($hasMethodCall) { |
| 2411 |
|
echo 'METHOD CALL FOUND : $' . $key . substr($methodCall, 0, 30) . "\n"; |
| 2412 |
|
} else { |
| 2413 |
|
echo 'VAR FOUND : $' . $key . "\n"; |
| 2414 |
|
} |
| 2415 |
|
} |
| 2416 |
|
|
| 2417 |
|
$key = str_replace('"', '\\"', $key); |
| 2418 |
|
|