-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent Phalcon\Config::merge() #13201
Labels
Comments
CameronHall
added a commit
to CameronHall/cphalcon
that referenced
this issue
Jun 18, 2019
Removed __set_state method `Phalcon/Config` now extends `ArrayObject` Merging is done properly Assignment works as expected _all_ the time
CameronHall
added a commit
to CameronHall/cphalcon
that referenced
this issue
Jun 18, 2019
Removed __set_state method `Phalcon/Config` now extends `ArrayObject` Merging is done properly Assignment works as expected _all_ the time
CameronHall
added a commit
to CameronHall/cphalcon
that referenced
this issue
Jun 18, 2019
Removed __set_state method `Phalcon/Config` now extends `ArrayObject` Merging is done properly Assignment works as expected _all_ the time
5 tasks
niden
pushed a commit
that referenced
this issue
Jun 20, 2019
Removed __set_state method `Phalcon/Config` now extends `ArrayObject` Merging is done properly Assignment works as expected _all_ the time
Resolved in #14186 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Inconsistent config merge
On some case of
Phalcon\Config::merge
that contain numeric (string/float/double) values possible lack of key name of config.Because
Phalcon\Config
convert all keys into string, and when config doing merge process it will be validate the keys as numeric value not an integer (string -> integer
).Because on some case, config has been used to handle dynamic array values, eg: versioning.
Remove the
is_numeric
logic tois_int
maybe better to make it more relevance.CASE (Logic numeric)
cphalcon/phalcon/config.zep
Line 325 in a0560cb
CASE (arrayaccess increments) -> offsetSet
And when config set as the increment also does not follow the
array
rules on methodoffsetSet
cphalcon/phalcon/config.zep
Line 172 in a0560cb
The increment if produce array
the
offsetSet(index, value)
the index will be contains key asnull
if the increment set as empty array incrementThe text was updated successfully, but these errors were encountered: