Issue Type: Coding Standards Violation Created: 2009-03-31T03:40:13.000+0000 Last Updated: 2012-02-10T09:10:36.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)
Reporter: Piotr Kabacinski (kabot) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_Db_Table
Related issues: - ZF-6029
During compilation with zendenc:
Zend/Db/Table/Row/Abstract.php(line 481): Only variables can be passed by reference Encoding of 'Zend/Db/Table/Row/Abstract.php' failed.
I don't know why such an error but it occurs.
Posted by old of Satoru Yoshida (email@example.com) on 2009-04-03T21:26:04.000+0000
If you use Zend Guard 5.01 and Zend Studio , I can try to reproduce it for you.
Can you tell me following infos?
Zend_Guard or Zend Encoder version Zend_Framework version php version, OS, etc..
Posted by Piotr Kabacinski (kabot) on 2009-04-04T15:52:08.000+0000
Zend Guard (PHP 5) v5.0.0 file is taken from trunk, revision 6332 OS linux, kernel 2.6.9 if it makes a difference
Posted by old of Satoru Yoshida (firstname.lastname@example.org) on 2009-04-04T18:24:08.000+0000
6332 is revision of the Zend/Db/Table/Row/Abstract.php ? If so, I think you may use 1.0.1 of Zend Framework Version.
I suggest you should use latest Zend Framework Version , 1.7.8, Because many issue have fixed from 1.0.1 to 1.7.8 .
With KIng Wishes.
Posted by Piotr Kabacinski (kabot) on 2009-04-04T23:17:35.000+0000
My bad, the revision is 14662.
I took 6332 from file header, and later i noticed that file has not svn:keywords set on, and this value is not updated @version $Id: Abstract.php 6332 2007-09-13 00:35:08Z bkarwin $
So as summary, the revision is 14662
Posted by old of Satoru Yoshida (email@example.com) on 2009-04-05T20:11:30.000+0000
I confirm your report with following.
Zend Framework revison - 14667 from trunk (05/April/2009) Zend Guard 5.0.1 Delete phpdoc block - No Delete line number - No hard to read variables - No hard to read functions - No hard to read classes - No
I find the same error message on below.
<pre class="highlight"> $newPrimaryKey = array(current((array) $this->_primary) => $primaryKey);
I will change it as following. It could be good.
<pre class="highlight"> $tempPrimaryKey = (array) $this->_primary; $newPrimaryKey = array(current($tempPrimaryKey) => $primaryKey);
Posted by old of Satoru Yoshida (firstname.lastname@example.org) on 2009-04-06T04:00:33.000+0000
Solved in SVN r14695
Have you found an issue?
See the Overview section for more details.