BUG 13974 "Error in triggers in lines of code commented" SOLVED

- Error in triggers in lines of code commented.
- Problema Resuelto, Se valida el Script del triggers quitando todo los comnetarios que existe en el codigo antes de ser
  ejecutado, el cambio se lo realizo en el metodo "setScript($sScript = '')".
This commit is contained in:
Luis Fernando Saisa Lopez
2014-03-18 12:13:37 -04:00
parent 13552bf8a0
commit 88604409a1

View File

@@ -168,6 +168,8 @@ class PMScript
list($id, $text) = $token;
switch ($id) {
case T_OPEN_TAG:
case T_CLOSE_TAG:
case T_COMMENT:
case T_ML_COMMENT: //we've defined this
case T_DOC_COMMENT: //and this
@@ -179,7 +181,7 @@ class PMScript
}
}
$result = trim(str_replace(array("<?php", "<?", "?>"), array("", "", ""), $result));
$result = trim($result);
$sScript = $result;
$this->sScript = $sScript;