ZF-8863: Zend_Validate_Db_Abstract __construct options

Issue Type: Bug Created: 2010-01-18T16:54:45.000+0000 Last Updated: 2010-01-18T23:05:22.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Alexander S. Tsvetkou (xappy) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: Attachments:


in __construct() method:

$options = func_get_args(); $temp['table'] = array_shift($options); $temp['field'] = array_shift($options); if (!empty($options)) { $options['exclude'] = array_shift($options); } if (!empty($options)) { $options['adapter'] = array_shift($options); } $options = $temp;

I'm not exactly sure and i'm sorry i didn't test it, but i think that in this part of code 'exclude' and 'adapter' options should be in $temp array, something like this:

... if (!empty($options)) { $temp['exclude'] = array_shift($options); } if (!empty($options)) { $temp['adapter'] = array_shift($options); } $options = $temp;

Revision: 20410 And excuse me if this is not an issue


Posted by Thomas Weidner (thomas) on 2010-01-18T23:05:20.000+0000

Closing as fixed. Thnx for your report

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.