You are here: PSPad forum > Bug report / Hlášení chyb > php code explorer comment bug

php code explorer comment bug

#1 php code explorer comment bug

Posted by: francesco.tota | Date: 2014-11-21 14:22 | IP: IP Logged

This code works fine in Code Explorer:
<?php
class test {

function a(){
/*
if (x!=y) do_something;
*/

}

function b(){
}
}
?>

If I add a closing brace in the block comment inside a function, code explorer incorrectly shows method b (and all other methods defined after) to be outside class Test as a global function:
<?php
class Test {

function a(){
/*
if (x!=y) { do_something; }
*/

}

function b(){
}
}
?>

Tested with 4.5.5, 4.5.8 and 4.5.9

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2021 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR