Skip to content
Browse files

ValueEntityFragment: osetreni pro php52 bug se provadi jen na orm 52 …

…verzi
  • Loading branch information...
1 parent 8bc5136 commit 4f566e0da664d2e9d46d55a995385329e1178111 @PetrP committed Feb 26, 2014
Showing with 3 additions and 2 deletions.
  1. +3 −2 Orm/Entity/EntityFragments/ValueEntityFragment.php
View
5 Orm/Entity/EntityFragments/ValueEntityFragment.php
@@ -518,10 +518,10 @@ public function __clone()
if ($m !== NULL)
{
+/*§php52
if (PHP_VERSION_ID < 50300 AND !preg_match('#[A-Z]#', $var))
{
// php 5.2 spatne predava name pri magickem pretezovani, name je cely lowercase
- // @codeCoverageIgnoreStart
foreach ($this->rules as $key => $foo)
{
if (strcasecmp($key, $var) === 0)
@@ -530,7 +530,8 @@ public function __clone()
break;
}
}
- } // @codeCoverageIgnoreEnd
+ }
+php52§*/
if ($var{0} != '_') $var{0} = $var{0} | "\x20"; // lcfirst
if (isset($this->rules[$var]))
{

0 comments on commit 4f566e0

Please sign in to comment.
Something went wrong with that request. Please try again.