Hey folks,

I have a problem with encoding the ZF version 1.5.3 for our product.
Encoding will fail on following file:

...\Zend\Db\Table\Row\Abstract.php

At the current line:

403        /**
404         * Normalize the result to an array indexed by primary key column(s).
405        * The table insert() method may return a scalar.
406         */
407        if (is_array($primaryKey)) {
408            $newPrimaryKey = $primaryKey;
409        } else {
410            $newPrimaryKey = array( current((array)
$this->_primary) => $primaryKey);    // <-- This line fail.
411        }

I got the following error message: "Only variables can be passed by reference".
Seems to be a little bit strange for me.
But I am also not sure if it is really necessary to cat
"$this->_primary" to "array" ?
After removing that cast it works perfect with encoding.

Maybe some ZF wizzard could give me a hint ?


-- 
Mit freundlichen Grüßen
With best regards

Wolfgang Forstmeier
-------------------------------------------
+49° 34' 26.76", +11° 0' 48.60"
-------------------------------------------
mailto:[EMAIL PROTECTED]

Reply via email to