Issues

ZF-12194: Notice on casting in abstract class

Issue Type: Bug Created: 2012-05-09T21:07:48.000+0000 Last Updated: 2012-12-03T09:26:37.000+0000 Status: Resolved Fix version(s): - 1.12.1 (18/Dec/12)

Reporter: Rene Roesch (reneroesch) Assignee: Frank Brückner (frosch) Tags: - Zend_Validate

  • FixForZF1.12.1

Related issues: - ZF-11906

Attachments: - Abstract.php.patch

Description

Hi,

since PHP 5.4 an E_NOTICE is thrown in Zend_Validate_Abstract on line 233 (and 268) because of this cast when $value is an array: ````

Could be please also say if this is going to be fixed in ZF 1.x or maybe only 2.x ?

Thanks in advance Rene

Comments

Posted by Rene Roesch (reneroesch) on 2012-09-27T16:01:40.000+0000

Hi,

I don't want to bump this, but altough the related issue is marked as fixed, this issue has not been solved yet. The mentioned array-to-string cast is still being performed.

Greetings Rene

Posted by Frank Brückner (frosch) on 2012-09-27T18:12:44.000+0000

We will fix this with the next mini release.

Posted by Frank Brückner (frosch) on 2012-10-26T07:50:22.000+0000

More infos: http://php.net/manual/en/…

Posted by Frank Brückner (frosch) on 2012-10-26T07:52:41.000+0000

Patch added.

Posted by Frank Brückner (frosch) on 2012-10-26T07:54:06.000+0000

Unit tests fixed in Validate. (Replace "assertType")

Posted by Rob Allen (rob) on 2012-11-07T20:33:26.000+0000

Applied patch to trunk (25104) and release-1.12 (25105)

Have you found an issue?

See the Overview section for more details.

Copyright

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

Contacts