[PHP-DEV] PHP_EOL exposed to scripts?

2004-08-11 Thread Paul Hudson
Hi there, This may already have been considered in the past, but I was wondering whether the PHP_EOL constant available inside the PHP source code could be made available to PHP programmers in their scripts? The current solution is, of course, to check PHP_OS each time and set the constant by han

Re: [PHP-DEV] FW: [PATCH] Bug #24064: Standard deviation

2004-02-10 Thread Paul Hudson
tted? Paul -- Quoting Andrey Hristov <[EMAIL PROTECTED]>: > Hi Paul, > may you compile your PHP binary with > --enable-debug and after that run your > sample scrit for once. See if there are leaks. > > > Andrey > > Quoting Paul Hudson > <[EMAI

[PHP-DEV] FW: [PATCH] Bug #24064: Standard deviation

2004-02-09 Thread Paul Hudson
Er, either the php-internals MARC archive doesn't show all attachments, or my diff file got stripped en route for not having a .txt extension. I've attached it again, just to make sure. Paul -- -Original Message----- From: Paul Hudson [mailto:[EMAIL PROTECTED] Sent: 10 February

[PHP-DEV] [PATCH] Bug #24064: Standard deviation

2004-02-09 Thread Paul Hudson
Hi there, Bug #24064 (submitted by [EMAIL PROTECTED]) requests a standard deviation function for PHP. I realise that any of you could implement this in 10 minutes, but according to the bug database it is still Open so I figured I would give it a try myself! There are probably a dozen errors in t

Re: [PHP-DEV] __get() and __set() in PHP 5

2003-07-12 Thread Paul Hudson
Andi, Wouldn't it be more useful if they worked for all variables, or is there a design reason why they work as they do currently? --Paul > Yes, you are right. They only work if the variable is not defined. > > Andi > > At 08:03 PM 12/7/2003 +0100, Paul Hudson wrote: >

[PHP-DEV] __get() and __set() in PHP 5

2003-07-12 Thread Paul Hudson
All, I've been poking around with these two functions while testing the build from CVS, and am not sure how they're supposed to work. From what I can gather, they are only called when changing a variable that wasn't in the class definition. I say that because I took the example script from h

Re: [PHP-DEV] Fwd: Re: [PHP] Private and protected variables in PHP 5?

2003-07-12 Thread Paul Hudson
Andi, > However, if you inherit from this class the new class does not know any of > the parents' private members and therefore doesn't error out. This is the > correct way of handling it because private members should be hidden to > inheriting classes. When you say "hidden", do you mean that it

Re: [PHP-DEV] Fwd: Re: [PHP] Private and protected variables in PHP 5?

2003-07-12 Thread Paul Hudson
Alan, > I think what you are getting at is that you can set 'private' variable > from outside.. - with no warnings etc. Yup. > so if you want a warning when you set/create a variable with the same > name as the private - use protected... > Or am I missing the point on what you expected..? I was

[PHP-DEV] Fwd: Re: [PHP] Private and protected variables in PHP 5?

2003-07-12 Thread Paul Hudson
ay 12 Jul 2003 10:51 am From: Paul Hudson <[EMAIL PROTECTED]> To: Greg Beaver <[EMAIL PROTECTED]>, Alan D'Angelo <[EMAIL PROTECTED]> Greg, Meh - I thought namespaces were canned? Or is it just that the Poppy object gets the private variables, but when I say $poppy->

[PHP-DEV] Behaviour of put_file_contents()?

2003-06-27 Thread Paul Hudson
All, The manual currently doesn't specify what the function file_put_contents returns beyond just "int". The code prototype says string, and the function appears to return a boolean rather than any integer (at least in the latest CVS). Which of the three should it be? I was /expecting/ it to