Zend Framework

zend encoding of 'Zend/Db/Table/Row/Abstract.php' failed.

Details

  • Type: Coding Standards Violation Coding Standards Violation
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.7.8
  • Fix Version/s: 1.8.0
  • Component/s: Zend_Db_Table
  • Labels:
    None

Description

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.

Issue Links

Activity

Hide
Satoru Yoshida added a comment -

Hi, Piotr.

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..

Show
Satoru Yoshida added a comment - Hi, Piotr. 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..
Hide
Piotr Kabacinski added a comment -

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

Show
Piotr Kabacinski added a comment - 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
Hide
Satoru Yoshida added a comment -

Hi, Piotr.

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.

Show
Satoru Yoshida added a comment - Hi, Piotr. 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.
Hide
Piotr Kabacinski added a comment -

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

Show
Piotr Kabacinski added a comment - 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
Hide
Satoru Yoshida added a comment -

Hi, Piotr.

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.

$newPrimaryKey = array(current((array) $this->_primary) => $primaryKey);

I will change it as following. It could be good.

$tempPrimaryKey = (array) $this->_primary;
$newPrimaryKey = array(current($tempPrimaryKey) => $primaryKey);
Show
Satoru Yoshida added a comment - Hi, Piotr. 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.
$newPrimaryKey = array(current((array) $this->_primary) => $primaryKey);
I will change it as following. It could be good.
$tempPrimaryKey = (array) $this->_primary;
$newPrimaryKey = array(current($tempPrimaryKey) => $primaryKey);
Hide
Satoru Yoshida added a comment -

Solved in SVN r14695

Show
Satoru Yoshida added a comment - Solved in SVN r14695

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
40m
Original Estimate - 40 minutes
Remaining:
0m
Remaining Estimate - 0 minutes
Logged:
40m
Time Spent - 40 minutes