Permalink
Browse files

Merge pull request #1917 from and-ers/master

array_push optimizations
  • Loading branch information...
2 parents b8c0c76 + 3f44abc commit 157ff017a0776503658b94a8520a2db3ffda9315 @samdark samdark committed Jan 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 framework/utils/CVarDumper.php
@@ -121,7 +121,7 @@ private static function dumpInternal($var,$level)
self::$_output.=get_class($var).'(...)';
else
{
- $id=array_push(self::$_objects,$var);
+ $id=self::$_objects[]=$var;
$className=get_class($var);
$members=(array)$var;
$spaces=str_repeat(' ',$level*4);

0 comments on commit 157ff01

Please sign in to comment.