Home » PHP » PHP_Parser » Bug #4148
debug statement in Parser/Core.php
Details
| Submitted | 2005-04-14 20:35 UTC |
|---|---|
| From | wally dot kramer at iovation dot com |
| Assigned | cellog |
| Status | Closed |
| Package | PHP_Parser |
| PHP Version | 4.3.2 |
| OS | Linux 2.4.21-27.0.2.EL i686 |
| Roadmaps | (Not assigned) |
Comments
[2005-04-14 20:35 UTC] wally dot kramer at iovation dot com
Description:
------------
Parser/Core.php line 1808 is "echo 'here'".
Looks like some debug assistance was left in.
The relevant function is:
function _241($yyTop) // line 1831 "C:/Web Pages/chiara/PHP_Parser4/Parser/Core5.jay"
{
echo 'here';
if (isset($this->referencedVars)) {
$this->referencedVars[] = $this->concat($this->yyVals[-3+$yyTop], $this->yyVals[-2+$yyTop], $this->yyVals[-1+$yyTop], $this->yyVals[0+$yyTop]);
}
}
Reproduce code:
---------------
Not sure what language construct or feature triggered "here" while parsing code, but it appeared 6 times out of 341 distinct .php files parsed.
Expected result:
----------------
(nothing at all)
Actual result:
--------------
echo
[2005-05-05 20:33 UTC] epte at ruffdogs dot com
Oh. Yeah, that was probably my fault (sorry). It probably snuck in with one of the several patches I was submitting a month ago or so. We'll have to wait for Buster to see this and take it out.
Erich