ZF-7225: mysql result handler doesn't return expected array of objects

Issue Type: New Feature Created: 2009-07-08T04:44:14.000+0000 Last Updated: 2009-07-31T21:15:49.000+0000 Status: Resolved Fix version(s): - 1.9.0 (31/Jul/09)

Reporter: Mayank Kumar (mayankk) Assignee: Wade Arnold (wadearnold) Tags: - Zend_Amf

Related issues: Attachments: - arrayOfArray.PNG


mysql result handler returns an arraycollection of arrays instead of arraycollection of objects because of which applications fail at runtime.


Posted by Stanislav Malyshev (stas) on 2009-07-08T11:04:59.000+0000

Could you please provide a code example of what you were doing, what you have received and what you expected to receive?

Posted by Mayank Kumar (mayankk) on 2009-07-17T05:53:32.000+0000

arrayOfArray.PNG, the result being received when mysql_result is returned from an amf operation.

Posted by Mayank Kumar (mayankk) on 2009-07-17T05:54:08.000+0000

arrayOfObjects.PNG, expected result when result is returned.

Posted by Mayank Kumar (mayankk) on 2009-07-17T06:00:45.000+0000

Please refer to the 104Kb arrayOfObjects.PNG instead of the 85Kb one.

The mysql result handler fetches result using mysql_fetch_assoc while iterating through the rows of the result. It would be great if it could use mysql_fetch_object and then set the types of each of the fields of the fetched object.

Posted by Stanislav Malyshev (stas) on 2009-07-20T13:55:12.000+0000

Switched to return objects.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.