Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21256 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92452 invoked by uid 1010); 16 Dec 2005 17:55:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92437 invoked from network); 16 Dec 2005 17:55:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Dec 2005 17:55:55 -0000 X-Host-Fingerprint: 195.197.172.115 gw01.mail.saunalahti.fi Linux 2.4/2.6 Received: from ([195.197.172.115:50513] helo=gw01.mail.saunalahti.fi) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id E8/58-14561-BAFF2A34 for ; Fri, 16 Dec 2005 12:55:55 -0500 Received: from nest.netphobia.fi (YZDCXXXI.dsl.saunalahti.fi [85.76.35.232]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id A29B9103EFC; Fri, 16 Dec 2005 19:55:50 +0200 (EET) Received: from nest.netphobia.fi (nest.netphobia.fi [127.0.0.1]) by nest.netphobia.fi (8.13.1/8.13.1) with ESMTP id jBGHtqam023852; Fri, 16 Dec 2005 19:55:52 +0200 Received: from localhost (jani@localhost) by nest.netphobia.fi (8.13.1/8.13.1/Submit) with ESMTP id jBGHtqwW023849; Fri, 16 Dec 2005 19:55:52 +0200 X-Authentication-Warning: nest.netphobia.fi: jani owned process doing -bs Date: Fri, 16 Dec 2005 19:55:52 +0200 (EET) Reply-To: Jani Taskinen To: Holografix cc: internals@lists.php.net In-Reply-To: <13.17.14561.1C7F2A34@pb1.pair.com> Message-ID: References: <13.17.14561.1C7F2A34@pb1.pair.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [PHP-DEV] Changes between 5.1.1 & 5.1.2-dev breaks PHP - Smarty plugin From: sniper@iki.fi (Jani Taskinen) I think it was just change of E_NOTICE to E_STRICT? :) --Jani On Fri, 16 Dec 2005, Holografix wrote: > > Hello > This works fine with 5.1.1 > > PHP > > include '/wwwroot/lib/smarty/Smarty.class.php'; > > $tpl = new Smarty; > $tpl->plugins_dir = array('/wwwroot/lib/smarty/plugins', > '/wwwroot/home/testes/plugins'); > $tpl->force_compile = true; > > $link = mysql_connect('localhost', 'xxxxx', 'yyyyy'); > mysql_select_db('dbteste'); > > $res = mysql_query('SELECT * FROM Photos ORDER BY PhotoID'); > while ($row = mysql_fetch_assoc($res)) { > $rows[] = $row; > } > > $tpl->assign("images", $rows); > $tpl->display("table2.tpl"); > > Template > > >

Test

> {table_foreach from=$images item=image cols=4 rows=4} > > {/table_foreach} > > > > The plugin is table_foreach, a bit long to copy & paste here > http://smarty.incutio.com/?page=table_foreach > > Something change between 5.1.1 release and today 5.1.2-dev snapshot. > > I am getting this errors in my php error log file > > [16-Dec-2005 17:05:32] PHP Strict Standards: Only variables should be > passed by reference in C:\wwwroot\lib\smarty\Smarty_Compiler.class.php on > line 729 > [16-Dec-2005 17:05:32] PHP Strict Standards: Only variables should be > passed by reference in > C:\wwwroot\home\tests\templates_c\%%72^721^721E602F%%table2.tpl.php on line > 8 > [16-Dec-2005 17:05:32] PHP Strict Standards: Only variables should be > passed by reference in > C:\wwwroot\home\tests\templates_c\%%72^721^721E602F%%table2.tpl.php on line > 11 > > LINE 729 - Smarty_Compiler.class.php > $arg_list = $this->_compile_arg_list('block', $tag_command, $attrs, > $_cache_attrs=''); > > LINE 8 - %%72^721^721E602F%%table2.tpl.php > _tag_stack[] = array('table_foreach', array('from' => > $this->_tpl_vars['images'],'item' => 'image','cols' => 4,'rows' => 4)); > smarty_block_table_foreach($this->_tag_stack[count($this->_tag_stack)-1][1], > null, $this, $_block_repeat=true);while ($_block_repeat) { ob_start(); ?> > > LINE 11 - %%72^721^721E602F%%table2.tpl.php > smarty_block_table_foreach($this->_tag_stack[count($this->_tag_stack)-1][1], > $_block_content, $this, $_block_repeat=false); } > array_pop($this->_tag_stack); ?> > > Best regards > > -- Give me your money at @ Donating money may make me happier and friendlier for a limited period! Death to all 4 letter abbreviations starting with P!