Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Fixed some Errors/Warnings #1456

Merged
merged 4 commits into from
Jun 7, 2012
Merged

Fixed some Errors/Warnings #1456

merged 4 commits into from
Jun 7, 2012

Conversation

marc-mabe
Copy link
Member

No description provided.

@Maks3w
Copy link
Member

Maks3w commented Jun 6, 2012

@marc-mabe Could you provide us the link to the Travis job?

@Maks3w
Copy link
Member

Maks3w commented Jun 6, 2012

@ralphschindler This PR change some lines in Zend\Db

foreach ($options as $key => $value) {
// translate key from underscore_separated to TitleCased
$methodKey = str_replace(' ', '', ucwords(str_replace('_', ' ', $key)));
$method = 'set' . $methodKey;
if (in_array($method, $methods)) {
if (method_exists($this, $method)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if, from the performance perspective, is best extract the methods first and then do 'N' access to the cache (array) rather than test if the method_exists 'N' times

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed that because of the option "cookie_httponly" which maps to the method [get|set]CookieHttpOnly.
The simple in_array check doesn't work because of case sesitivity.
(Before this change it maps to [get|set]CookieHTTPOnly)

@marc-mabe
Copy link
Member Author

Build Status

@EvanDotPro EvanDotPro merged commit b9c278a into zendframework:master Jun 7, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants