Conversation
|
Thank @ashnazg for der PR. |
"Argument pear#1 ($value) must be of type Countable|array, bool given" at the end of the query
|
@ashnazg Thanks for your PR. I pushed a second commit, becuase at the end of the query dataset, oci_fetch_array returns a |
| } | ||
| if ($fetchmode & DB_FETCHMODE_ASSOC) { | ||
| $moredata = @oci_fetch_array($result,$arr,OCI_ASSOC+OCI_RETURN_NULLS+OCI_RETURN_LOBS); | ||
| $arr = @oci_fetch_array($result,OCI_ASSOC+OCI_RETURN_NULLS+OCI_RETURN_LOBS); |
There was a problem hiding this comment.
i think, because of all other PHP oci functions are silent, too. Maybe the DBMS should handle the error messages on its own?
@ashnazg is that right? or what do you thought by silence that function?
There is also another check, if the oci_fetch_array returns an array and not false.
i don´t have a strong opinion on call it silence or not.
@ashnazg @till what do you suggest?
There was a problem hiding this comment.
@schengawegga No, that sounds plausible. Otherwise LGTM!
Issue #33 . This fixes the args for
oci_fetch_array. I tried to keep the same$moredatalogic, based on (what I think is) originalocifetchintoreturn behavior of integer of rows fetched.@schengawegga , I'll need you to test this since I don't have the right environment.