[PHP-DEV] Sessions, session_register()

2002-12-17 Thread John Coggeshall
Can someone enlighten me as to why session_register() and $_SESSION shouldn't be used togeather? It seems to me the session_register() function(s) should just be working with $_SESSION anyway... Are they doing something different? Is this desired behavior if it is doing something different? John

Re: [PHP-DEV] T_PAAMAYIM_NEKUDOTAYIM

2002-12-17 Thread Bertrand Mansion
[EMAIL PROTECTED] wrote : On Tue, 17 Dec 2002, Bertrand Mansion wrote: If this behaviour could be extended to support $className::method(), that would be just great. Search the archives, it was brought up before, conclusion: it will not happen. I only found this:

Re: [PHP-DEV] Sessions, session_register()

2002-12-17 Thread Sascha Schumann
On Tue, 17 Dec 2002, John Coggeshall wrote: Can someone enlighten me as to why session_register() and $_SESSION shouldn't be used togeather? It seems to me the session_register() function(s) should just be working with $_SESSION anyway... Are they doing something different? Is this desired

RE: [PHP-DEV] Sessions, session_register()

2002-12-17 Thread John Coggeshall
Where did you find that recommendation? http://www.php.net/manual/en/function.session-register.php Read the note :) I thought it was kind of strange myself... If this is changed in 4.3 I will update the docs to reflect this, but I wanted to see what everyone had to say about it first. John

Re: [PHP-DEV] Sessions, session_register()

2002-12-17 Thread Andrey Hristov
- Original Message - From: Sascha Schumann [EMAIL PROTECTED] To: Andrey Hristov [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, December 17, 2002 11:02 AM Subject: Re: [PHP-DEV] Sessions, session_register() Isn't that an error that 4.2.3 throws when session_register() is used as

RE: [PHP-DEV] Sessions, session_register()

2002-12-17 Thread John Coggeshall
php_error(E_WARNING, Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this

Re: [PHP-DEV] Sessions, session_register()

2002-12-17 Thread Sascha Schumann
Isn't that an error that 4.2.3 throws when session_register() is used as well as registering directly in $_SESSION? So the message is not easily comprehensible, I suppose. There is no problem when you have register_globals enabled and you mix session_register and use of

RE: [PHP-DEV] Sessions, session_register()

2002-12-17 Thread John Coggeshall
The problem stems from the fact that some users have been (ab)using session_register when register_globals is off. session_register is only supposed to be used for the register_globals=on case. Those functions need to be updated in the manual then to reflect this change. If I say

Re: [PHP-DEV] T_PAAMAYIM_NEKUDOTAYIM

2002-12-17 Thread Markus Fischer
On Tue, Dec 17, 2002 at 09:57:08AM +0100, Bertrand Mansion wrote : [EMAIL PROTECTED] wrote : On Tue, 17 Dec 2002, Bertrand Mansion wrote: If this behaviour could be extended to support $className::method(), that would be just great. Search the archives, it was brought up before,

[PHP-DEV] Constants inside strings, sometimes

2002-12-17 Thread Philip Olson
Hello, I stumbled upon this feature today and am wondering why it exists: ?php error_reporting(E_ALL); ini_set('display_errors', 1); define('a', 'b'); $arr = array('a' = 'apple', 'b' = 'banana', 'c' = 'cranberry'); echo a $arr[a] \n; // apple echo b {$arr[a]} \n;

[PHP-DEV] please add some more links to snaps.php.net

2002-12-17 Thread Gabor Hojtsy
Hi! It would be nice to add links to the latest aliases to the snaps.php.net main page. It seems that the aliases containing latest instead of the package / compile time are still in effect, so please add the links to them on the snaps page. Thanks, Goba -- PHP Development Mailing List

[PHP-DEV] output buffering problem

2002-12-17 Thread electroteque
hi guys i have the latest cvs , my function used to work now it doesnt function progressbar_percentage($i,$files,$newwin,$moviename,$status,$sleep=null){ if (is_array($files)) $per = $i/count($files); else $per = $i/$files; $per = $per*100; $buffer = script language=\javascript\\n; $buffer .=

[PHP-DEV] Re: output buffering problem

2002-12-17 Thread electroteque
actually i singled it out , it doesnt flush until the end of the loop, so it waits till the loop is finished and then flushes i suppose this is a bug. Electroteque [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi guys i have the latest cvs , my function used to

Re: [PHP-DEV] Re: #20993 [Ver]: Element valuechangeswithoutasking

2002-12-17 Thread Andi Gutmans
At 12:49 AM 12/17/2002 +0900, Moriyoshi Koizumi wrote: Andi Gutmans [EMAIL PROTECTED] wrote: I don't understand what you're doing here. Are you actually separating on every assignment and doing a deep copy? What I'm trying to do in my patch can be divided into two phases. In the first phase,

Re: [PHP-DEV] T_PAAMAYIM_NEKUDOTAYIM

2002-12-17 Thread Andi Gutmans
It won't be supported but you can use eval() if you really need to. Andi At 08:47 PM 12/16/2002 +0100, Bertrand Mansion wrote: [EMAIL PROTECTED] wrote : On Mon, 16 Dec 2002, Bertrand Mansion wrote: [EMAIL PROTECTED] wrote : Its neither, its a fact of the language, the following:

Re: [PHP-DEV] $this scope (was T_PAAMAYIM_NEKUDOTAYIM)

2002-12-17 Thread Andi Gutmans
At 11:26 AM 12/17/2002 +0800, Alan Knowles wrote: It would be usefull to have a direction on this, - It's come up a number of times in bug reports. It has a number of uses (primarily breaking large classes up, into smaller components..), and a clearer way to write code than using a huge

Re: [PHP-DEV] Constants inside strings, sometimes

2002-12-17 Thread Andi Gutmans
At 05:16 PM 12/17/2002 +, Philip Olson wrote: Hello, I stumbled upon this feature today and am wondering why it exists: ?php error_reporting(E_ALL); ini_set('display_errors', 1); define('a', 'b'); $arr = array('a' = 'apple', 'b' = 'banana', 'c' = 'cranberry');

Re: [PHP-DEV] Re: #20993 [Ver]: Elementvaluechangeswithoutasking

2002-12-17 Thread Moriyoshi Koizumi
Andi Gutmans [EMAIL PROTECTED] wrote: At 12:49 AM 12/17/2002 +0900, Moriyoshi Koizumi wrote: Andi Gutmans [EMAIL PROTECTED] wrote: I don't understand what you're doing here. Are you actually separating on every assignment and doing a deep copy? What I'm trying to do in my patch can