Skip to content
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

Remove unneeded use of CRM_Core_DAO::$_nullArray in executeQuery or s… #14561

Merged

Conversation

seamuslee001
Copy link
Contributor

…imilar calls

Overview

title says it all and why was this like it in the first place?

ping @eileenmcnaughton @monishdeb @mattwire

@civibot
Copy link

civibot bot commented Jun 17, 2019

(Standard links)

@civibot civibot bot added the master label Jun 17, 2019
@seamuslee001 seamuslee001 force-pushed the null_array_execute_query branch 2 times, most recently from 68a7248 to b42fe48 Compare June 17, 2019 06:10
@eileenmcnaughton
Copy link
Contributor

test this please

@eileenmcnaughton eileenmcnaughton merged commit 5414c31 into civicrm:master Jun 17, 2019
@eileenmcnaughton eileenmcnaughton deleted the null_array_execute_query branch June 17, 2019 08:06
@colemanw
Copy link
Member

why was this like it in the first place?

Allow me to demonstrate...
COPY. ✂️ PASTE. ♻️ REPEAT

why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?
why was this like it in the first place?

@eileenmcnaughton
Copy link
Contributor

@mattwire - ^^ the technical explanation of the problem...

@eileenmcnaughton
Copy link
Contributor

Actually there is another technical detail. On an unknown but now truly outdated version of php it was not possible to have a default parameter on variables passed by reference. They concurrently believed that passing by reference was more performant (@tttp debunked that around 2010)

@tttp
Copy link
Contributor

tttp commented Jun 17, 2019

Thanks @seamuslee001!

duh, not a bug per se, but it sure lasted a fair bit longer than needed ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants