ZF-12064: zend.file.transfer.validators Example #4 code wrong

Issue Type: Docs: Problem Created: 2012-02-21T01:12:49.000+0000 Last Updated: 2012-02-22T22:09:44.000+0000 Status: Resolved Fix version(s): - 1.11.12 (22/Jun/12)

Reporter: netroby (netroby) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_File_Transfer

  • zend

Related issues: Attachments:


<pre class="highlight">
if ($upload->isValid()) {
    print "Validation failure";

should be

<pre class="highlight">
if (!$upload->isValid()) {
    print("Validation failure");

$upload->isValid() will return false when upload file not valid.

so the code may be mistake


Posted by Adam Lundrigan (adamlundrigan) on 2012-02-22T20:07:00.000+0000

Fixed in trunk r24623 Merged to release-1.11 in r24624

Posted by Adam Lundrigan (adamlundrigan) on 2012-02-22T22:09:44.000+0000

ZF2 pull request:

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.