zend-validate fix issue: File "Intelligentmail.php" does not exist #336
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
On case sensitive file name system (linux) code bellow
will raise exception not found file
Zend/Validate/Validate/Barcode/Intelligentmail.php
Logic load barcode $adapter file here
zf1-future/library/Zend/Validate/Barcode.php
Lines 132 to 140 in 26aaf16
Root cause
Zend_Validate_Barcode_IntelligentMail
not match rule in line 132$adapter = ucfirst(strtolower($adapter));
What in PR
Reopen test case
Zend_Validate_BarcodeTest.php::testINTELLIGENTMAIL
- https://github.com/hungtrinh/zf1-future/actions/runs/4434747808/jobs/7781048143#step:10:261Fix above bug by: https://github.com/hungtrinh/zf1-future/actions/runs/4434966231/jobs/7781528244
Zend_Validate_Barcode_Intelligentmail
IntelligentMail.php
toIntelligentmail.php
Ref
Intelligentmail.php
- see here https://github.com/Shardj/zf1-future/commits/d822ef15e4c27f116c5bc25a2967c25b9ecac59c/library/Zend/Validate/Barcode/Intelligentmail.php?browsing_rename_history=true&new_path=library/Zend/Validate/Barcode/IntelligentMail.php&original_branch=master