Uh oh!
There was an error while loading. Please reload this page.
Promote E_NOTICE to Error in PostgreSQL extension - #6226
Conversation
nikic
commented
Sep 28, 2020
We should add some (representative) tests then ^ |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
f87c9a5 to
46c239eCompareThere was a problem hiding this comment.
While you're here, indent this block one level?
There was a problem hiding this comment.
No, this code is there to handle integer strings larger than zend_long. is_numeric_string would convert those to floats, which defeats the purpose of this code.
There was a problem hiding this comment.
Right, but this code is lot, so maybe make it a dedicated function in the future?
There was a problem hiding this comment.
Oh sure, we should extract the common pgsql code (later...)
There was a problem hiding this comment.
Nah, at least going by the message, this is an issue with the environment...
There was a problem hiding this comment.
Same here, this block is missing an indent.
There was a problem hiding this comment.
| zend_value_error("Array of values must be an associated array of string keys"); | |
| zend_value_error("Array of values must be an associative array with string keys"); |
There was a problem hiding this comment.
| zend_value_error("Array of values must be an associative array of string keys"); | |
| zend_value_error("Array of values must be an associative array with string keys"); |
46c239e to
e327070Compare
Some of these are obvious type/value errors which is surprising they were classified as E_NOTICE...
And because it is PGSQL none of these conditions are tested :-)