ezsystems/ezpublish — comment on commit e22e25791d803e4cbc8f15a2508abe3b6c90b3c1
File: lib/ezutils/classes/ezini.php line 1229
By patrickallaert:

I confirm this.

The doc about that parameter is:

@param string|false $identifier Will overwrite existing directory with same identifier if set

However that was not the case (bug) because the argument should have been reversed to actually overwrite it:

$dirs[$scope] = array_merge( $dirs[$scope], array( $identifier => array( $dir, $globalDir ) ) );

Since:

$hash1 + $hash2;

is just the same as:

array_merge( $hash2, $hash1 );

in case of hashes (but faster) there is no point in maintaining array_merge().