-
Notifications
You must be signed in to change notification settings - Fork 35
Fixes/changes to compatibility wrapper #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1 - i5_spool_list - do not require an outq library use *LIBL if one is not provided 2 - listRead - remove error logging when no more entries found, just clogs the log.
values in the input array. Changed to compare explicityly to null.
|
For the oldToNewDescriptionItem fix: Adam pointed out that it would be better programming if findValueInArray() returned false instead of null; then compare against false instead of null. Can you make those changes? |
|
Yes I can do that. I think the reason it probably returned null was to On 11/25/2014 11:29 AM, Alan Seiden wrote:
|
oldToNewDescriptionItem to reflect change in return value.
|
Thanks, Scott. I agree with your explanation of why I originally used null. Once Adam pointed it out to me, I saw that false does seem clearer as an indication of "unsuccessful." If we were in more of an OO mode, not in the CW, we might have used an exception instead. Thanks for making the update. |
|
You are correct regarding the need for *LIBL when searching for spool files by OUTQ. I reviewed an old Easycom test and found that it did not require a library to be specified, so presumably used *LIBL internally; the QGYOLSPL API does support *LIBL. Very good. |
|
To clarify, when I asked about warnings from empty $dsData, I meant whether new warnings arose with the updated code when applied to your particular test cases. Before, empty $dsData would be considered an error; now it won't, so that array may flow through various foreach statements, which would generate a warning with empty arrays; so I was suggesting that you look for warnings before we finalize the pull request. Apologies if that was already clear to you. |
|
No problem, here is how I tested: 1 - Remove the fix and ensure I can create the issue (uses the QSYRUSRI 2 - Put the fix back in and re-run the test, checked php.log and I didn't find any errors or warning generated with the fix back in :) On Wed, Nov 26, 2014 at 7:31 AM, Alan Seiden notifications@github.com
|
|
Thank you. |
Fixes/changes to compatibility wrapper
Fixed cwclasses to do a strict comparison to null in oldToNewDescriptionItem since that is what the called function is returning on error, prevents things like empty arrays from causing an error.
Changed two functions in cw.php:
1 - i5_spool_list - do not require an outq library use *LIBL if one is not provided
2 - listRead - remove error logging when no more entries found, just clogs the log.