go to bug id or search bugs for
If array_combine() is called with two empty arrays it
produces the following warning
"Both parameters should have number of elements at least
This warning is misleading, reading the manual entry for
array_combine(), it does say that FALSE will be returned
if empty arrays are passed, but the warning is confusing
and implies that empty arrays are acceptable and that
there is some other problem.
The warning should be changed to something like
"Both parameters should have at least 1 element"
Alternatively it would seem more logical (to me anyway)
for array_combine(array(), array()) to just return the
empty array, but I guess that would break backwards
Add a Patch
Add a Pull Request
Verified and agreed it should not behave like this..