Forums / Developer / Array trouble in 3.7.2

Array trouble in 3.7.2

Author Message

Petter Arneson

Monday 08 May 2006 3:55:29 am

I can't get array operators append, insert, merge to work, these examples generates a timeout:

{def $testArray=array('test1')}
{def $testArray=$testArray|append('test2')}
{$testArray|attribute(show)}

{def $testArray=array(1,2,3)}
{$testArray|insert(4,4)}
{$testArray|attribute(show)}

{def $a = hash('a', 'b')}
{def $b = hash('c', 'd')}
{def $c = $a|merge($b)}
{$c|attribute(show)}

I tried using let/set but it makes no difference. This site has Global variable registration set to of, could this be related?

www.vzt.no

Kristof Coomans

Monday 08 May 2006 4:08:42 am

Can you upgrade to the latest stable release of the 3.7 branch (at the moment this is 3.7.6) and then see if you're still having the same issue?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Ɓukasz Serwatka

Monday 08 May 2006 4:41:42 am

There was indeed bug in PHP 4.4.1 which cause attribute tpl operator into infinite loop. This was fixed in rev. 14425.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Petter Arneson

Monday 08 May 2006 4:45:06 am

Thanks!

The revision of the site I was working on was 13942. Tested another 3.7.2 with the same result. For 3.7.3 it performed as expected.

www.vzt.no