Re: [PHP-DEV] Idea to extend language: Explicitly setting variablescope inside user defined function (longer)

2002-10-20 Thread Andi Gutmans
At 04:31 AM 10/21/2002 +0200, NTPT wrote: Hi. I have some idea and suggestion how to extend PHP language a bit in some way. That may probably lead to increasing of php flexibility, allow more modular coding to be done etc My sugestion is simple: Allow PHP programmer to explicitelly told ,

Re: [PHP-DEV] --disable-cgi yet again

2002-10-20 Thread Jani Taskinen
On Thu, 10 Oct 2002, Andrei Zmievski wrote: >On Thu, 10 Oct 2002, Philip Olson wrote: >> Shouldn't this be --disable-cli ? > >Eh, no. We already have --disable-cli. We need --disable-cgi. And now you have it. :) Remember to do './cvsclean && ./buildconf' !! --Jani -- PHP

[PHP-DEV] Bug count..

2002-10-20 Thread Jani Taskinen
Here you can find nice curve of the bug count: http://www.php.net/~jani/count.png The red curve is total amount of reports with these statuses: Open, Critical, Analyzed, Verified, Assigned and Feedback. --Jani -- PHP Development Mailing List

Re: [PHP-DEV] Idea to extend language: Explicitly setting variablescope inside user defined function (longer)

2002-10-20 Thread Rasmus Lerdorf
How in the world do you know that "code will run faster" ? Implementing your suggestion would take quite a lot of changes to the internals of PHP. Instead of just a global and a current symbol table, we would now need basically an unlimited number of symbol tables and every variable lookup would

[PHP-DEV] Idea to extend language: Explicitly setting variable scope inside user defined function (longer)

2002-10-20 Thread NTPT
Hi. I have some idea and suggestion how to extend PHP language a bit in some way. That may probably lead to increasing of php flexibility, allow more modular coding to be done etc My sugestion is simple: Allow PHP programmer to explicitelly told , WHAT variable scope will be used inside u

Re: [PHP-DEV] PHP_AUTH_(USER|PW) not set

2002-10-20 Thread Martin Jansen
Sigh, I'm stupid: It was a dumb problem on my side. Sorry for any inconvenience. On Sun Oct 20, 2002 at 08:3156AM -0700, Rasmus Lerdorf wrote: > As in any Apache mod_auth module. > > On Sun, 20 Oct 2002, Martin Jansen wrote: > > > On Sat Oct 19, 2002 at 11:0608AM -0700, Rasmus Lerdorf wrote: > >

[PHP-DEV] setcookie problem

2002-10-20 Thread Mehran Ziadloo
I've reached a problem which I don't know how to get over it. Consider you have a PHP page with the following address: http://www.domain.com/users/signin/set.php this script's job is to set a cookie and it does. The problem is when I set them, when some other pages want to use that cookie, only

Re: [PHP-DEV] [PHP-QA] Logs of failed tests PHP 4.3.0pre1 (fwd)

2002-10-20 Thread Michael Mauch
Melvyn Sopacua <[EMAIL PROTECTED]> wrote: > At 18:48 20-10-2002, Mike Robinson wrote: > >>Michael Mauch wrote: >> >> > I doubt that the C library does anything useful with >> > non-ASCII characters while you are in a "C" or "POSIX" >> > locale, so expat or PHP can't do much to correct that. >> > >

[PHP-DEV] Re: Curl Multi Interface Patch

2002-10-20 Thread Sterling Hughes
On Sun, 2002-10-20 at 02:16, Boris Bukowski wrote: > > > ok, i can see the use in that, however, i think it can be more useful if > > you give the user the option of when to use the select() call - that's > > the whole point of the cURL multi interface, and while it may be useful > > in this case,

[PHP-DEV] Perl 5.8.0 and autotools

2002-10-20 Thread Melvyn Sopacua
hi, small warning for those run into it: Current CVS gave an error and failed to build, because of a typo in perl 5.8.0's version of File::Basename. What triggers the error, I haven't looked at yet, but if you use autoconf 2.5x and automake 1.5, you may run into it. The fix is simple, change line

RE: [PHP-DEV] [PHP-QA] Logs of failed tests PHP 4.3.0pre1 (fwd)

2002-10-20 Thread Mike Robinson
Michael Mauch wrote: > I doubt that the C library does anything useful with > non-ASCII characters while you are in a "C" or "POSIX" > locale, so expat or PHP can't do much to correct that. > > So is your locale something other than "C" or "POSIX"? > "en_US.ISO-8859-1" for example? Yup, that

RE: [PHP-DEV] [PHP-QA] Logs of failed tests PHP 4.3.0pre1 (fwd)

2002-10-20 Thread Mike Robinson
Michael Mauch wrote: [snip] > >> > "en_US.ISO-8859-1" for example? > >> > >>Yup, thats what its set to. > > Hmm. Strange. What does > > php -r 'echo strtoupper("äöü"),"\n";' > > yield on your system? And what system is it, btw? It outputs äöü. Stock RedHat-8.0 box, kernel-2.4.18 glibc-2.2.

RE: [PHP-DEV] [PHP-QA] Logs of failed tests PHP 4.3.0pre1 (fwd)

2002-10-20 Thread Wez Furlong
I've not been following this thread, but wanted to point out that there is now mb_convert_case() available in the mbstring extension. It is locale independent and you can specify the charset of the string whose case you want to convert. proto string mb_convert_case(string sourcestring, int mode [,

RE: [PHP-DEV] [PHP-QA] Logs of failed tests PHP 4.3.0pre1 (fwd)

2002-10-20 Thread Melvyn Sopacua
At 18:48 20-10-2002, Mike Robinson wrote: Michael Mauch wrote: > I doubt that the C library does anything useful with > non-ASCII characters while you are in a "C" or "POSIX" > locale, so expat or PHP can't do much to correct that. > > So is your locale something other than "C" or "POSIX"? > "en

Re: [PHP-DEV] [PHP-QA] Logs of failed tests PHP 4.3.0pre1 (fwd)

2002-10-20 Thread Melvyn Sopacua
On Sun, 20 Oct 2002, Michael Mauch wrote: > >> > non-ASCII characters while you are in a "C" or "POSIX" > >> > locale, so expat or PHP can't do much to correct that. > >> > > >> > So is your locale something other than "C" or "POSIX"? > >> > "en_US.ISO-8859-1" for example? > >> > >>Yup, thats wh

Re: [PHP-DEV] [PHP-QA] Logs of failed tests PHP 4.3.0pre1 (fwd)

2002-10-20 Thread Melvyn Sopacua
On Mon, 21 Oct 2002, Melvyn Sopacua wrote: > > >> > > >>Yup, thats what its set to. > > > > Hmm. Strange. What does > > > > php -r 'echo strtoupper("äöü"),"\n";' > > > > yield on your system? And what system is it, btw? > > hmm, then my implementation was wrong. If I set $LC_CTYPE correctly

Re: [PHP-DEV] library calls from within php functions

2002-10-20 Thread Tony Leake
On Sun, 2002-10-20 at 10:07, Wez Furlong wrote: > Aside from that, I can't see any obvious mistakes. > Ok, I solved it. I declared a zval called read, then tried to call the read function. DOH ! Thanks for your help anyway Tony -- PHP Development Mailing List To unsubsc

Re: [PHP-DEV] library calls from within php functions

2002-10-20 Thread Wez Furlong
On 10/20/02, "Tony Leake" <[EMAIL PROTECTED]> wrote: > and now I'm trying to write functions that will read and write from the > pipe. So far I have this, it isn't finished as you will see. > > PHP_FUNCTION(pipe_read) > { > pipe_r_le_struct *st_pipe_r; > zval *read; > zval * res; >

Re: [PHP-DEV] trying to understand zvals

2002-10-20 Thread Stanislav Malyshev
TDJ>> Could you go into a little more depth on the problem, just so I TDJ>> understand? The problem is that passing argument passes only zval *, i.e. pointer to variable itself. To make reference assignment, you need zval **, i.e. the place in the symbol table. -- Stanislav Malyshev, Zend Pro

Re: [PHP-DEV] [PHP-QA] Logs of failed tests PHP 4.3.0pre1 (fwd)

2002-10-20 Thread Michael Mauch
Mike Robinson <[EMAIL PROTECTED]> wrote: > Michael Mauch writes: > >> Are your locale settings ok? > > Yeah, they're fine, for my locale. > > But I'm not in Germany, though I'm told the beer there > is awesome. :) Yes, I'm told so, too ;-) I doubt that the C library does anything useful with no

Re: [PHP-DEV] library calls from within php functions

2002-10-20 Thread Tony Leake
On Sun, 2002-10-20 at 09:34, Wez Furlong wrote: Thanks for the fast reply Wez, > There's not much we can tell you about this unless you post the > rest of the lines of that function. See below for the code > > Perhaps you did not include ? Yep thats there, I used exec_skel to create the basi

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/mbstring mbfilter.c mbstring.c mbstring.h /main main.c Zend zend_highlight.c zend_highlight.h zend_multibyte.c zend_multibyte.h

2002-10-20 Thread Sebastian Bergmann
Masaki Fujimoto wrote: > fujimotoSat Oct 19 22:57:41 2002 EDT > > Modified files: > /Zend zend_highlight.c zend_highlight.h zend_multibyte.c > zend_multibyte.h > /php4/ext/mbstring mbfilter.c mbstring.c mbstring.h > /php4/main main.c > Log: >

[PHP-DEV] library calls from within php functions

2002-10-20 Thread Tony Leake
Hi, I am working on an extension that makes use of the pipe, read and write library calls on a linux platform. When I try to put this line read(fd, buf, 1024); inside a php function ( PHP_FUNCTION(read_pipe) ) it fails to compile with the following warning: called object is not a function. I

Re: [PHP-DEV] PHPUnit_Assert::assert*Not*Equals()?

2002-10-20 Thread Sebastian Bergmann
Matthew Bogosian wrote: > This may be a really dumb question, but why isn't there a > PHPUnit_Assert::assertNotEquals() method? The PHPUnit API is modelled after the JUnit API, so there are two options: Either I overlooked it at the time, or it's not in JUnit. I agree with you that it's han

Re: [PHP-DEV] library calls from within php functions

2002-10-20 Thread Wez Furlong
Hi Tony, There's not much we can tell you about this unless you post the rest of the lines of that function. Perhaps you did not include ? Note: always prefer this: read(fd, buf, sizeof(buf)); to this: read(fd, buf, 1024); The former is immune to buffer overruns if you change the size

Re: [PHP-DEV] PHP_AUTH_(USER|PW) not set

2002-10-20 Thread Rasmus Lerdorf
As in any Apache mod_auth module. On Sun, 20 Oct 2002, Martin Jansen wrote: > On Sat Oct 19, 2002 at 11:0608AM -0700, Rasmus Lerdorf wrote: > > You probably have an external auth module operating on the same request. > > I don't think so. Could you perhaps be a bit more verbose what you > mean wi

Re: [PHP-DEV] PHP_AUTH_(USER|PW) not set

2002-10-20 Thread Martin Jansen
On Sat Oct 19, 2002 at 11:0608AM -0700, Rasmus Lerdorf wrote: > You probably have an external auth module operating on the same request. I don't think so. Could you perhaps be a bit more verbose what you mean with "external auth module"? -- - Martin Martin Jansen

[PHP-DEV] Re: Curl Multi Interface Patch

2002-10-20 Thread Boris Bukowski
Am Sunday 20 October 2002 03:31 schrieb Sterling Hughes: > On Sun, 2002-10-20 at 02:16, Boris Bukowski wrote: > > > ok, i can see the use in that, however, i think it can be more useful > > > if you give the user the option of when to use the select() call - > > > that's the whole point of the cURL

[PHP-DEV] Returning non-references still allows access to member variables?

2002-10-20 Thread Matthew Bogosian
Howdy all, I have stumbled onto a reference behavior I cannot explain. Here's my problem: I'm trying to return a copy of a member variable. The function is not declared to return a reference, but it seems as if the user can override this. Here's a non-object example: Running this yields exa