Anyways, here's this snippet of code
Code: Select all
private function _getPHPCode()
{
if ($this->_PHPOnly)
{
//multiple php blocks, or single php block with closing tag, matches <? or <?php or <% and %> or ?>
if (preg_match_all("/<((\?|%)|(php)?).+?(\?|%)>/sm", $this->_code, $matches))
{
$this->_code = implode("\n", $matches[0]);
}
}
}So then I comment that entire function out with /* */ comment
Code: Select all
/*private function _getPHPCode()
{
if ($this->_PHPOnly)
{
//multiple php blocks, or single php block with closing tag, matches <? or <?php or <% and %> or ?>
if (preg_match_all("/<((\?|%)|(php)?).+?(\?|%)>/sm", $this->_code, $matches))
{
$this->_code = implode("\n", $matches[0]);
}
}
}*/Code: Select all
//private function _getPHPCode()
//{
// if ($this->_PHPOnly)
// {
// //multiple php blocks, or single php block with closing tag, matches <? or <?php or <% and %> or ?>
// if (preg_match_all("/<((\?|%)|(php)?).+?(\?|%)>/sm", $this->_code, $matches))
// {
// $this->_code = implode("\n", $matches[0]);
// }
// }
//}Next, I comment out only the "meat" of the function using //:
Code: Select all
private function _getPHPCode()
{
//if ($this->_PHPOnly)
//{
// //multiple php blocks, or single php block with closing tag, matches <? or <?php or <% and %> or ?>
// if (preg_match_all("/<((\?|%)|(php)?).+?(\?|%)>/sm", $this->_code, $matches))
// {
// $this->_code = implode("\n", $matches[0]);
// }
//}
}If I comment out the "meat" of the function using /* */ like this
Code: Select all
private function _getPHPCode()
{
/*if ($this->_PHPOnly)
{
//multiple php blocks, or single php block with closing tag, matches <? or <?php or <% and %> or ?>
if (preg_match_all("/<((\?|%)|(php)?).+?(\?|%)>/sm", $this->_code, $matches))
{
$this->_code = implode("\n", $matches[0]);
}
}*/
}What the heck is going on here? I was very careful to make sure exactly what I put in this post is exactly what I'm doing.