Re: [PHP-DEV] stripslashes() improvements

2004-06-09 Thread Alexander Valyalkin
On Thu, 10 Jun 2004 00:50:46 +1200, Jevon Wright <[EMAIL PROTECTED]> wrote: 'c:\\windows\\system32' becomes 'c:\windows\system32' in memory (the slashes are stripped). I know it :) stripslashes() will make it 'c:windowssystem32'. Thus the above tests will fail. Yes. The current version of stri

[PHP-DEV] Re: Bouncer Test

2004-06-09 Thread Aidan Lister
Thanks Peter, I'm not sure what went on then - I got all the bouncer replies from php-install (sent the list to systems for removal), but the message appeared on this list, not php-install. Anyway, apologies for the spam. "Peter 'Iridium' Waller" <[EMAIL PROTECTED]> wrote in message news:[EMAI

Re: [PHP-DEV] That should be " ZE2 and NON static methods"

2004-06-09 Thread John Coggeshall
Um, that's the type of thing that a quick test could tell you, isn't it? John On Wed, 2004-06-09 at 20:53, l0t3k wrote: > lets try again > in an OOP extension using methods NOT tagged as ZEND_ACC_STATIC, > does ZE2 > prevent them from being called statically or do i always need to do : > >

[PHP-DEV] CVS Account Request: rogerdudler

2004-06-09 Thread Roger Dudler
I'm developing a PEAR Package which contains a class for Image Manipulation (greyscale, resizing, text, coloring, png overlays) and much more. And now, CVS is pretty good to manage my project. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsu

[PHP-DEV] That should be " ZE2 and NON static methods"

2004-06-09 Thread l0t3k
lets try again in an OOP extension using methods NOT tagged as ZEND_ACC_STATIC, does ZE2 prevent them from being called statically or do i always need to do : if (!getThis()) { ERROR("Cannot call this method statically"); RETURN_FALSE; } l0t3k -- PHP Interna

[PHP-DEV] ZE2 and static methods

2004-06-09 Thread l0t3k
in an OOP extension using methods tagged as ZEND_ACC_STATIC, does ZE2 prevent them from being called statically or do i always need to do : if (!getThis()) { ERROR("Cannot call this method statically"); RETURN_FALSE; } l0t3k -- PHP Internals - PHP Runtime Developme

[PHP-DEV] output buffering callback limitation

2004-06-09 Thread Okin Okin
Hi, I'm having trouble with output buffering limitation and the output_callback function of ob_start. look at this script : it outputs : "Fatal error: ob_start(): Cannot use output buffering in output buffering display handlers" Why then ? It would be a killer feature for my next killer app

[PHP-DEV] a very boring question about objects, and what's expected of them

2004-06-09 Thread Steph
Good people, consider this, and tell me what's right and what's wrong: name = $param2."\n"; print($this->name); } } class sonOfBlah extends blah { function __construct($param) { // overwriting the constructor is allowed $this->name = $param."\n"; print($this->name

Re: [PHP-DEV] Enabling OpenSSL with Windows Binaries

2004-06-09 Thread Adam Maccabee Trachtenberg
On Wed, 9 Jun 2004, Adam Maccabee Trachtenberg wrote: > Right now, if you're using the pre-built Windows binaries, you can use > cURL to make an SSL request, but you can't use an https stream. Um. Nevermind. I am an idiot. -adam -- [EMAIL PROTECTED] author of o'reilly's php cookbook avoid the

[PHP-DEV] CVS Account Request: klaus

2004-06-09 Thread Klaus Paiva
Developing the PHP runtime, Translating the documentation and if possible, Maintaining www.php.net -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] CVS Account Request: jad

2004-06-09 Thread jad madi
I'm willing to work with the Arabic documentation team. so i'm requesting a CVS login -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Enabling OpenSSL with Windows Binaries

2004-06-09 Thread Olivier Hill
Adam Maccabee Trachtenberg wrote: Right now, if you're using the pre-built Windows binaries, you can use cURL to make an SSL request, but you can't use an https stream. I'm guessing from this that OpenSSL is already on the box that creates the binaries, and we just need to modify the build script t

[PHP-DEV] Enabling OpenSSL with Windows Binaries

2004-06-09 Thread Adam Maccabee Trachtenberg
Right now, if you're using the pre-built Windows binaries, you can use cURL to make an SSL request, but you can't use an https stream. I'm guessing from this that OpenSSL is already on the box that creates the binaries, and we just need to modify the build script to enable it. If somebody had the

[PHP-DEV] CVS Account Request: ramsey

2004-06-09 Thread Ben Ramsey
I will be using my CVS account to maintain English documentation for PHP-GTK. Steph sent me. :-) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] CVS Account Request: luckec

2004-06-09 Thread Carsten Lucke
I am going to develop the ID3 extension with Stephan Schmidt <[EMAIL PROTECTED]> and need an account to be able to keep on developing when he switches from our own CVS into the PHP-CVS. He has already announced this extension in PECL and started a thread in the PECL mailing-list. -- PHP Intern

[PHP-DEV] Re: Confusing pointers in PHP 4 and 5

2004-06-09 Thread Sara Golemon
> I think, and I could be completely wrong, that copying a variable actually > creates a reference. The data is only copied when the variable referenced is > modified. > That's true. What I left out of my explanation (in order to keep it simple) is that when you "copy" a variable, a new label is c

RE: [PHP-DEV] [Fwd: php5 rc3 win32 mysqli-extension is missing]

2004-06-09 Thread Steph
FYI: Both the mssql and mysqli extensions missing from RC3 are now available on snaps.php.net. > -Original Message- > From: Antony Dovgal [mailto:[EMAIL PROTECTED] > Sent: 09 June 2004 10:21 > To: [EMAIL PROTECTED] > Subject: Re: [PHP-DEV] [Fwd: php5 rc3 win32 mysqli-extension is missing]

[PHP-DEV] Re: Bouncer Test

2004-06-09 Thread Peter 'iridium' Waller
Aidan Lister wrote: This is a test message to detect any automated spam. Please don't reply, or you may be removed from the list accidently. [09-06 15:34:19] "This is a test message to detect any automated spam. Please don't reply, or [09-06 15:34:19] you may be removed from the list accidently.

Re: [PHP-DEV] Re: Confusing pointers in PHP 4 and 5

2004-06-09 Thread Andi Gutmans
In general, if you don't mean for it to be a reference semantically, you are best off not using references at all. PHP will do the right thing. Andi At 10:32 AM 6/9/2004 +0200, Bert Slagter wrote: Derick Rethans wrote: On Wed, 9 Jun 2004, Stephan Schmidt wrote: Yes, that is correct. No, it is not

Re: [PHP-DEV] stripslashes() improvements

2004-06-09 Thread Jevon Wright
> echo "Stripslashes test: "; > ini_set('magic_quotes_sybase', 0); > $s = 'c:\\windows\\system32'; > $s1 = '\\'; > if ($s == stripslashes($s) && $s1 == stripslashes($s1)) echo "OK\n"; > else echo "FAILED\n"; > ?> 'c:\\windows\\system32' becomes 'c:\windows\system32' in memory (the slashes are str

Re: [PHP-DEV] stripslashes() improvements

2004-06-09 Thread Antony Dovgal
On Wed, 09 Jun 2004 14:17:33 +0300 "Alexander Valyalkin" <[EMAIL PROTECTED]> wrote: > On Wed, 9 Jun 2004 15:00:30 +0400, Antony Dovgal > <[EMAIL PROTECTED]> wrote: > > > On Wed, 09 Jun 2004 13:52:42 +0300 > > "Alexander Valyalkin" <[EMAIL PROTECTED]> wrote: > > > >> On Tue, 8 Jun 2004 16:03:19 +

Re: [PHP-DEV] stripslashes() improvements

2004-06-09 Thread moshe doron
> > Ok. First of all, my version of the stripslashes() solves following > > bugs: > > #9437 > > #19947 > > #27848 > > All these bugs were marked as 'bogus' (yeah, the first one is bogus too, > dunno why it's 'closed'). > So, personally I can't understand what are you trying to fix, if nothing > is

Re: [PHP-DEV] stripslashes() improvements

2004-06-09 Thread Alexander Valyalkin
On Wed, 9 Jun 2004 15:00:30 +0400, Antony Dovgal <[EMAIL PROTECTED]> wrote: On Wed, 09 Jun 2004 13:52:42 +0300 "Alexander Valyalkin" <[EMAIL PROTECTED]> wrote: On Tue, 8 Jun 2004 16:03:19 +0200 (CEST), Derick Rethans <[EMAIL PROTECTED]> wrote: Ok. First of all, my version of the stripslashes()

Re: [PHP-DEV] stripslashes() improvements

2004-06-09 Thread Antony Dovgal
On Wed, 09 Jun 2004 13:52:42 +0300 "Alexander Valyalkin" <[EMAIL PROTECTED]> wrote: > On Tue, 8 Jun 2004 16:03:19 +0200 (CEST), Derick Rethans > <[EMAIL PROTECTED]> wrote: > Ok. First of all, my version of the stripslashes() solves following > bugs: > #9437 > #19947 > #27848 All these bugs were

Re: [PHP-DEV] stripslashes() improvements

2004-06-09 Thread Alexander Valyalkin
On Tue, 8 Jun 2004 16:03:19 +0200 (CEST), Derick Rethans <[EMAIL PROTECTED]> wrote: You'll have to proof that by writing testcases, for example try it with the test cases in the current source and write new ones for things that we don't have a test case for yet. -PHPAPI void php_stripslashes(cha

Re: [PHP-DEV] readfile() improvements

2004-06-09 Thread Alexander Valyalkin
On Tue, 08 Jun 2004 12:51:33 +0200, Morten K. Poulsen <[EMAIL PROTECTED]> wrote: On Tue, 2004-06-08 at 11:32, Alexander Valyalkin wrote: +/* get the length of local file connected to descriptor fd */ fstat(fd, &sbuf); [snip] +if (errno) { Oh-oh! You need to check the ret

Re: [PHP-DEV] [Fwd: php5 rc3 win32 mysqli-extension is missing]

2004-06-09 Thread Antony Dovgal
Hi Goba! Plz, take a look at bug #28701. I believe it's a known issue. --- WBR, Antony Dovgal aka tony2001 [EMAIL PROTECTED] || [EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] [Fwd: php5 rc3 win32 mysqli-extension is missing]

2004-06-09 Thread Gabor Hojtsy
--- Begin Message --- hello folks, it seems you forgot the mysqli-extension in the new rc3 release for win32 . temporarily im using the rc2-mysqli ... but ... would you please update the release ? yours, kai -- Kai Meder Bechtle IT-Systemhaus Mannheim Tel: 0621 / 87503-167 --- En

Re: [PHP-DEV] Re: Confusing pointers in PHP 4 and 5

2004-06-09 Thread Bert Slagter
Derick Rethans wrote: On Wed, 9 Jun 2004, Stephan Schmidt wrote: Yes, that is correct. No, it is not. 'copying' a variable copies the structure to contain the variable, but not the data, but does NOT make a reference as that's a different concept. You are right that the data associated with a vari

RE: [PHP-DEV] Re: Confusing pointers in PHP 4 and 5

2004-06-09 Thread Derick Rethans
On Wed, 9 Jun 2004, Stephan Schmidt wrote: > Hi, > > > I think, and I could be completely wrong, that copying a > > variable actually > > creates a reference. The data is only copied when the > > variable referenced is > > modified. > Yes, that is correct. No, it is not. 'copying' a variable copi

RE: [PHP-DEV] Re: Confusing pointers in PHP 4 and 5

2004-06-09 Thread Stephan Schmidt
Hi, > I think, and I could be completely wrong, that copying a > variable actually > creates a reference. The data is only copied when the > variable referenced is > modified. Yes, that is correct. Stephan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://w

[PHP-DEV] Re: Confusing pointers in PHP 4 and 5

2004-06-09 Thread Aidan Lister
I think, and I could be completely wrong, that copying a variable actually creates a reference. The data is only copied when the variable referenced is modified. "Bert Slagter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sara Golemon wrote: > > Every "variable" in PHP is a pair

[PHP-DEV] Re: Confusing pointers in PHP 4 and 5

2004-06-09 Thread Bert Slagter
Sara Golemon wrote: Every "variable" in PHP is a pair. > > [cut] $foo = 1; /*$foo (label) >1 (value) (is_ref=0, refcount=1) */ $bar = &$foo; /* $foo (label) -->1 (value) */ /* $bar (label) ---/ is_ref=1, refcount=2 */ Hope that helps. -Sara Thanks fo