mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Close Connection when there is no connection value.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13161 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
034a5c0288
commit
f70ce644ce
1410 changed files with 7188 additions and 53541 deletions
|
|
@ -90,7 +90,7 @@ class XmlLangParser extends XmlParser
|
|||
|
||||
/**
|
||||
* Return compiled content
|
||||
* @return string Returns compiled lang source code
|
||||
* @return string Returns compiled lang source code
|
||||
*/
|
||||
function getCompileContent()
|
||||
{
|
||||
|
|
@ -159,15 +159,20 @@ class XmlLangParser extends XmlParser
|
|||
if($item->item)
|
||||
{
|
||||
$type = $item->attrs->type;
|
||||
$mode = $item->attrs->mode;
|
||||
|
||||
if($type == 'array')
|
||||
{
|
||||
$this->code .= $var . "=array();\n";
|
||||
$this->code .= "if(!is_array({$var})){\n";
|
||||
$this->code .= " {$var} = array();\n";
|
||||
$this->code .= "}\n";
|
||||
$var .= '[\'%s\']';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->code .= $var . "=new stdClass;\n";
|
||||
$this->code .= "if(!is_object({$var})){\n";
|
||||
$this->code .= " {$var} = new stdClass();\n";
|
||||
$this->code .= "}\n";
|
||||
$var .= '->%s';
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ class Argument
|
|||
* Caches escaped and toString value so that the parsing won't happen multiple times
|
||||
* @var mixed
|
||||
*/
|
||||
var $_value; //
|
||||
var $_value; //
|
||||
|
||||
/**
|
||||
* constructor
|
||||
|
|
@ -109,6 +109,11 @@ class Argument
|
|||
return $this->_value;
|
||||
}
|
||||
|
||||
function getPureValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
function getColumnOperation()
|
||||
{
|
||||
return $this->column_operation;
|
||||
|
|
@ -228,12 +233,12 @@ class Argument
|
|||
|
||||
function utf8Replacer($captures)
|
||||
{
|
||||
if(!empty($captures[1]))
|
||||
if(strlen($captures[1]))
|
||||
{
|
||||
// Valid byte sequence. Return unmodified.
|
||||
return $captures[1];
|
||||
}
|
||||
else if(!empty($captures[2]))
|
||||
else if(strlen($captures[2]))
|
||||
{
|
||||
// Remove user defined area
|
||||
if("\xF3\xB0\x80\x80" <= $captures[2])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue