Re: [PHP-DEV] [VOTE] Allow non-variable arguments to empty()

2012-04-29 Thread Nikita Popov
On Sun, Apr 29, 2012 at 6:00 AM, Laruence wrote: > On Sun, Apr 29, 2012 at 5:05 AM, Nikita Popov > wrote: >> On Thu, Apr 19, 2012 at 1:57 AM, Kris Craig wrote: >>> "There'd be a minimum of 2 weeks between when an RFC that touches the >>> language is brought up on this list and when it's voted o

Re: [PHP-DEV] [VOTE] Allow non-variable arguments to empty()

2012-04-29 Thread Laruence
On Sun, Apr 29, 2012 at 5:42 PM, Nikita Popov wrote: > On Sun, Apr 29, 2012 at 6:00 AM, Laruence wrote: >> On Sun, Apr 29, 2012 at 5:05 AM, Nikita Popov >> wrote: >>> On Thu, Apr 19, 2012 at 1:57 AM, Kris Craig wrote: "There'd be a minimum of 2 weeks between when an RFC that touches the >

[PHP-DEV] autoconf 2.68

2012-04-29 Thread Sebastian Bergmann
Is this intentional? buildconf: You need autoconf 2.59 or lower to build this version of PHP. You are currently trying to use 2.68 Most distros have separate autoconf 2.13 or 2.59 packages. On Debian/Ubuntu both autoconf2.13 and autoconf2.59 packages exist. Install autoconf2.13 and set the P

Re: [PHP-DEV] autoconf 2.68

2012-04-29 Thread Gergo Erdosi
On Sun, Apr 29, 2012 at 1:18 PM, Sebastian Bergmann wrote: >  Is this intentional? > >  buildconf: You need autoconf 2.59 or lower to build this version of >  PHP. You are currently trying to use 2.68 Most distros have separate >  autoconf 2.13 or 2.59 packages. On Debian/Ubuntu both autoconf2.13

Re: [PHP-DEV] autoconf 2.68

2012-04-29 Thread Sebastian Bergmann
Am 29.04.2012 13:24, schrieb Gergo Erdosi: > Yes, see Ramus' reply in an older thread: > http://marc.info/?l=php-internals&m=131423346824759 I know that autoconf 2.13 is required for PHP 5.3 and that autoconf 2.59 is required for PHP 5.4. But on Fedora 16 I only have the choice between 2.13 and

Re: [PHP-DEV] autoconf 2.68

2012-04-29 Thread Sebastian Bergmann
Am 29.04.2012 13:44, schrieb Sebastian Bergmann: > I know that autoconf 2.13 is required for PHP 5.3 and that > autoconf 2.59 is required for PHP 5.4. But on Fedora 16 I only have the > choice between 2.13 and 2.68 and it looks to me like we are running into > the same problem again of not being co

Re: [PHP-DEV] autoconf 2.68

2012-04-29 Thread Ferenc Kovacs
On Sun, Apr 29, 2012 at 1:44 PM, Sebastian Bergmann wrote: > Am 29.04.2012 13:24, schrieb Gergo Erdosi: > > Yes, see Ramus' reply in an older thread: > > http://marc.info/?l=php-internals&m=131423346824759 > > I know that autoconf 2.13 is required for PHP 5.3 and that > autoconf 2.59 is required

Re: [PHP-DEV] Function boolval()

2012-04-29 Thread Jille Timmermans
On 28-04-12 06:27, Kalle Sommer Nielsen wrote: 2012/4/27 Jille Timmermans: I suggest we add a function boolval(). It simply converts the given argument to a boolean, like strval(), intval() and floatval(). I already have an implementation ready[1]. Why? * It is missing in the current list of *v

Re: [PHP-DEV] Function boolval()

2012-04-29 Thread Kris Craig
On Sun, Apr 29, 2012 at 2:22 PM, Jille Timmermans wrote: > On 28-04-12 06:27, Kalle Sommer Nielsen wrote: > >> 2012/4/27 Jille Timmermans: >> >> I suggest we add a function boolval(). It simply converts the given >>> argument >>> to a boolean, like strval(), intval() and floatval(). I already ha

[PHP-DEV] readfile() memory usage

2012-04-29 Thread Larry Garfield
So, I've been reading articles for a decade now that say that readfile() is great and wonderful except for memory usage. Specifically, that it reads a file into memory entirely, and then prints it to stdout from there. So if you're outputing a big file you will hit your memory limit and kill

RE: [PHP-DEV] readfile() memory usage

2012-04-29 Thread Uwe Schindler
Hi, Readfile() is internally implemented in the same way like fpassthru() (actually the same backend function is called, readfile only opening a stream before delegating to passthru). Both methods delegate from PHP user-space to an internal streams API methods php_stream_passthru(). This one has 2

Re: [PHP-DEV] readfile() memory usage

2012-04-29 Thread Sherif Ramadan
> So, I've been reading articles for a decade now that say that readfile() is > great and wonderful except for memory usage.  Specifically, that it reads a > file into memory entirely, and then prints it to stdout from there.  So if > you're outputing a big file you will hit your memory limit and k