ZF-12064: zend.file.transfer.validators Example #4 code wrong
Description
if ($upload->isValid()) {
print "Validation failure";
}
should be
if (!$upload->isValid()) {
print("Validation failure");
}
$upload->isValid() will return false when upload file not valid.
so the code may be mistake
Comments
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: https://github.com/zendframework/zf2/pull/808