| @@ 36-38 (lines=3) @@ | ||
| 33 | } else { |
|
| 34 | $const->setIsString(false); |
|
| 35 | } |
|
| 36 | if (strrpos($expr, "'") === strlen($expr) - 1) { |
|
| 37 | $expr = substr($expr, 0, -1); |
|
| 38 | } |
|
| 39 | $expr = stripslashes($expr); |
|
| 40 | ||
| 41 | $const->setValue($expr); |
|
| @@ 438-440 (lines=3) @@ | ||
| 435 | if (strpos($expr, "'") === 0) { |
|
| 436 | $expr = substr($expr, 1); |
|
| 437 | } |
|
| 438 | if (strrpos($expr, "'") === strlen($expr) - 1) { |
|
| 439 | $expr = substr($expr, 0, -1); |
|
| 440 | } |
|
| 441 | $expr = stripslashes($expr); |
|
| 442 | ||
| 443 | $instance->setValue($expr); |
|