Conversation
removed array_column function and relace it with some php core to do the same thing fix joomla#10942
|
There's also an API function doing the same like array_column: |
|
@bertmert because there is a native function I would depreciate the function, if we have a higher minimum PHP version it should go away. So I think a valid argument for using it is that we can identify the places where we have to replace code. For me not a great argument :-) |
|
Why are we not using an array indexed by: and then use isset() ? it should be much faster |
|
It looks like /off-topic |
|
@ggppdk I don't have a good feeling to use an url as an index for an array. |
i did not know that, i missed this, Understanding the PHP array implementation or do you mean something else ? |
|
@ggppdk just a feeling without evidence, same level as I don't use spaces in a filename :-) |
|
I see what you mean now, any binary data can be used as index in PHP, hash function will just read bytes In PHP, associative arrays are implemented as hashtables with some extra functions [EDIT] also this PR should work, (but i have not taken time to test it) |
|
I assume that this can be closed as @eilsonge merged #10947 ?? This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10943. |
|
Yes - I was in the middle of typing that :) I've gone with the polyfill as it's effectively making our code optimised and forwards compatible |
Pull Request for Issue #10942 .
Summary of Changes
replaced a not in 5.4 available function with some pure php code that should do the same thing
Testing Instructions
see #10670