RE: [PHP] Re: refernces, arrays, and why does it take up so much memory?

2013-09-02 Thread Daevid Vincent
> -Original Message- > From: Jim Giner [mailto:jim.gi...@albanyhandball.com] > Sent: Monday, September 02, 2013 8:14 PM > To: php-general@lists.php.net > Subject: [PHP] Re: refernces, arrays, and why does it take up so much > memory? > > On 9/2/2013 9:30 PM, Daevid Vincent wrote: > > I'm

[PHP] Re: refernces, arrays, and why does it take up so much memory?

2013-09-02 Thread Jim Giner
On 9/2/2013 9:30 PM, Daevid Vincent wrote: I'm confused on how a reference works I think. I have a DB result set in an array I'm looping over. All I simply want to do is make the array key the "id" of the result set row. This is the basic gist of it: private function _normalize_result_

[PHP] refernces, arrays, and why does it take up so much memory?

2013-09-02 Thread Daevid Vincent
I'm confused on how a reference works I think. I have a DB result set in an array I'm looping over. All I simply want to do is make the array key the "id" of the result set row. This is the basic gist of it: private function _normalize_result_set() { foreach($this-

Re: [PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-02 Thread Lester Caine
Jan Ehrhardt wrote: Could you try to add a function_exists check to >libs/upgradephp/upgrade.php? > >This at the function declaration of _json_encode: >if (!function_exists('_json_encode')) { function _json_encode($var, ... > >And a extra } at the end. This patch, together with upgrading to the

[PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-02 Thread Jan Ehrhardt
Jan Ehrhardt in php.general (Mon, 02 Sep 2013 10:57:14 +0200): >Could you try to add a function_exists check to >libs/upgradephp/upgrade.php? > >This at the function declaration of _json_encode: >if (!function_exists('_json_encode')) { function _json_encode($var, ... > >And a extra } at the end. T

[PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-02 Thread Jan Ehrhardt
Grant in php.general (Sun, 25 Aug 2013 02:31:29 -0700): >I've tried php-5.5.2 and 5.5.3 but both segfault with piwik unless the >opcache is disabled. Someone filed a piwik bug but was told it's a >php bug: > >http://dev.piwik.org/trac/ticket/4093 Could you try to add a function_exists check to li