RE: [PHP-DEV] Proposed additional behaviour of str_replace()

2002-04-18 Thread Mårten Gustafsson
> -Original Message- > From: Hartmut Holzgraefe [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 17, 2002 11:07 AM > To: [EMAIL PROTECTED] > Cc: PHP-Dev > Subject: Re: [PHP-DEV] Proposed additional behaviour of str_replace() > > > Mårten Gustafsson wrot

RE: [PHP-DEV] Proposed additional behaviour of str_replace()

2002-04-18 Thread Mårten Gustafsson
> On Wed, Apr 17, 2002 at 01:01:29AM +0200, Mårten Gustafsson wrote : > > Is there anyone else than me that would find it useful to be able to do: > > > > > $string = 'foo bar'; > > $replacements = array( > > 'foo' => 'F

[PHP-DEV] Proposed additional behaviour of str_replace()

2002-04-16 Thread Mårten Gustafsson
Is there anyone else than me that would find it useful to be able to do: 'FOO', 'bar' => 'BAR'); // Prints "FOO BAR" echo str_replace($replacements, $string); ?> With current behaviour one has to do: 'FOO', 'bar' => 'BAR'); // Prints "FOO BAR" echo str_replace(array_keys($

RE: [PHP-DEV] Session patch for ID created by handler

2002-04-09 Thread Mårten Gustafsson
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 29, 2002 3:17 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: [PHP-DEV] Session patch for ID created by handler > > > So have we discussed this enough, can I just apply it and be

RE: [PHP-DEV] PHP 4.0.1 released?! (RE: [PHP-CVS] cvs: php4(PHP_4_0_7) / configure.in /main php_version.h )

2001-12-10 Thread Mårten Gustafsson
previous errors But I´ll just wait to it´s official and test again then. Marten. > On Mon, 10 Dec 2001, Mårten Gustafsson wrote: > > > Shouldn´t this be announced somewhere? > > It will be when it's time. > > Derick -- PHP Development Mailing List <http://www.

[PHP-DEV] PHP 4.0.1 released?! (RE: [PHP-CVS] cvs: php4(PHP_4_0_7) / configure.in /main php_version.h )

2001-12-10 Thread Mårten Gustafsson
Shouldn´t this be announced somewhere? regards, Marten. > -Original Message- > From: Zeev Suraski [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 10, 2001 4:22 PM > To: [EMAIL PROTECTED] > Subject: [PHP-CVS] cvs: php4(PHP_4_0_7) / configure.in /main > php_version.h > > > zeev

[PHP-DEV] preg_replace() and backreferences

2001-11-18 Thread Mårten Gustafsson
When trying to make a regular expression that escapes SQL wildcards a stumbled across this: However, this snippet yields the correct result Am I missing something about regexps or is this a bug? regards, Marten. -- PHP Development Mailing List To unsubscribe, e-ma

RE: [PHP-DEV] session_readonly() documented but not implemented?!

2001-07-22 Thread Mårten Gustafsson
> -Original Message- > From: hartmut [mailto:hartmut]On Behalf Of Hartmut Holzgraefe > Sent: Sunday, July 22, 2001 2:27 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-DEV] session_readonly() documented but not > implemented?! > > > > The subject says it all, anyone that knows something a

[PHP-DEV] session_readonly() documented but not implemented?!

2001-07-22 Thread Mårten Gustafsson
The subject says it all, anyone that knows something about this? tia, Marten. -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP-DEV] Accessing files on other virtual hosts (RE: [PHP-DEV] Reading memory "before" a variable)

2001-02-05 Thread Mårten Gustafsson
Tried my snippet on a Linux box runnig PHP 4.0.4pl1 with an interesting result; it displayed the source code for both PHP and HTML files from other virtual hosts on the machine! Surly this should not be possible. -Mårten. Icq# 38863127 -Original Message- From: Mårten Gustafsson

[PHP-DEV] Reading memory "before" a variable

2001-02-05 Thread Mårten Gustafsson
Using PHP 4.0.4 for Windows it is possible to access memory "before" a variable using a negative index on a string variable. Executing the snippet below outputs a lot of trash but alos the entire source code of a file that is auto prepended. -1; $i--) { $str .= $hello[$i]; } echo s

[PHP-DEV] References to static vars, static vars in objects & OO performance

2001-01-22 Thread Mårten Gustafsson
Hello. 1. I recently discovered that it´s possible to return a reference to a static variable. Is this supposed to work, will it stay that way in future versions? 2. Static variables are "shared" between multiple instances of the same object. Is this intended behaviour? 3. Could someone give