Re: [PHP-DEV] comments in php

2001-01-13 Thread Andi Gutmans
As it is a compile first, execute later interpreter it will in practice not slow down your code. Of course if your script has only a very small amount of flat code (no loops/function calls) and a huge amount of comments (tens of KB) then it could theoretically make a difference but in reality

Re: [PHP-DEV] Patch that corrects non blocked socket reading on WIN32

2001-01-16 Thread Andi Gutmans
I think the code itself should be fixed (with #ifdef or add it to the socket abstraction). It's dangerous to redefine errno because other code uses it too. Andi At 01:01 PM 1/14/2001 -0800, Christophe Thibault wrote: I just came across a bug still present in the latest php 4 release. i have

RE: [PHP-DEV] Patch that corrects non blocked socket reading on W IN32

2001-01-16 Thread Andi Gutmans
Yep! Andi At 07:05 PM 1/16/2001 +0100, Sascha Schumann wrote: On Tue, 16 Jan 2001, Christophe Thibault wrote: Actually, it's not that dangerous as the redefinition of errno only occurs in fsock.c and errno is only used in fsock.c for retrieving socket errors... Something like this

Re: [PHP-DEV] RE: mysql_pconnect still broken (was: RE: What does this mean ?)

2001-01-17 Thread Andi Gutmans
Looks like this was my bad :) Sorry, Andi At 01:47 AM 1/17/2001 +0200, Zeev Suraski wrote: Yep, you're right. Fixed. Thanks, Zeev At 23:24 16/1/2001, Steven Roussey wrote: OK. Look at a quick report. I've just installed php4-200101152345. It runs with mysql-3.23.27-beta. Apache 1.3.12,

[PHP-DEV] popen() on Win32

2001-01-21 Thread Andi Gutmans
Hey, A couple of guys here said they are working on creating a popen() alternative solution for Win32. Any progress? Andi -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP-DEV] popen() on Win32

2001-01-21 Thread Andi Gutmans
At 05:27 PM 1/21/2001 +0100, Derick Rethans wrote: Hi, A couple of guys here said they are working on creating a popen() alternative solution for Win32. Any progress? I'm busy with it. I'm making progress indeed. I only have to bring the code into the PHP source now. BUt it looks good.

Re: [PHP-DEV] Bug #8732

2001-01-24 Thread Andi Gutmans
Executing external programs right now doesn't work on Windows. Hopefully this will be fixed soon. Andi At 12:14 PM 1/24/2001 +0100, Edin Kadribasic wrote: I'm experiencing the same probmlem on one of our 5 production servers. Exec functions always fail with -1 as the return code. No error

Re: [PHP-DEV] Proposal for updating the PDF-extension

2001-01-24 Thread Andi Gutmans
At 05:43 PM 1/24/2001 +0200, Jani Taskinen wrote: On Wed, 24 Jan 2001, Uwe Steinmann wrote: On Wed, Jan 24, 2001 at 03:07:09PM +0100, Cynic wrote: confuse folks. and the consensus (at least I got it it's agreed on) is pdf_add_local_link-like names. From the php point of view there should

RE: [PHP-DEV] ooops, i thought it new one but:

2001-01-27 Thread Andi Gutmans
Moshe, It's quite difficult to exploit this vulnerability without knowing your servers setup. It is possible, but personally I wouldn't worry too much about it although you should urge your ISP to upgrade to 4.0.4pl1. Andi At 08:07 PM 1/27/2001 +, James Moore wrote: No. the bug was

Re: [PHP-DEV] popen() on Win32

2001-02-03 Thread Andi Gutmans
Reminder! :) Andi At 05:27 PM 1/21/2001 +0100, Derick Rethans wrote: Hi, A couple of guys here said they are working on creating a popen() alternative solution for Win32. Any progress? I'm busy with it. I'm making progress indeed. I only have to bring the code into the PHP source now.

Fwd: RE: [PHP-DEV] Bug #8732

2001-02-03 Thread Andi Gutmans
To: "Andi Gutmans" [EMAIL PROTECTED] Hi Andi, I think that you should have enogh info to fix the problem now. Please see the two attached messages and let me know if that is enough. Edin -Original Message- From: Andi Gutmans [mailto:[EMAIL PROTECTED]] Sent: Thursday, Janu

[PHP-DEV] FreeBSD ISO

2001-02-04 Thread Andi Gutmans
Any idea if there's a place where one can download an ISO of FreeBSD? I can't seem to find one on ftp.freebsd.org and I don't feel like waiting until an order arrives. Thanks, Andi -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP-DEV] wrong implementation of isset()?

2001-02-07 Thread Andi Gutmans
At 03:02 AM 2/7/2001 +0100, Cynic wrote: with all respect to the people who develop the language, I think this is nonsense: $rs = mysql_query( 'select x, y, z from foo where ...' ) ; $x = mysql_fetch_array( $rs , MYSQL_NUM ) ; var_dump( $x[2] ) ; var_dump( isset( $x[2] ) ) ; NULL # well, the

Re: [PHP-DEV] FW: [PHP-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c ho

2001-02-12 Thread Andi Gutmans
I also tend to think it's kind of strange. It's about 800KB of source code and as far as I understand this is an extension module which will be used by almost no one (and everyone will be forced to dl an extra 800KB (300KB compressed)). Any of the Midgard people on this list? Is there any good

Re: [PHP-DEV] Midgard (Was: cvs: php4 /ext/midgard .cvsignore...)

2001-02-12 Thread Andi Gutmans
At 10:18 PM 2/12/2001 +0100, Emiliano wrote: Sebastian Bergmann wrote: Emiliano wrote: But PEAR is a repository for scripts written in PHP, right? PHP Extension and Add-On Repository. Extensions and Add-Ons, written in either PHP or C, are welcome :-) OK, my mistake. So moving

Re: [PHP-DEV] Changing implementation of get_meta_tags for 4.0.5

2001-02-13 Thread Andi Gutmans
Well maybe we can have a function with another name? or pass an optional second argument? I'm not that sure it's a good thing to break backwards compatibility on this one although I admit not knowing how many people actually use it. My guess is that if it's been in a couple of versions of PHP

Re: [PHP-DEV] Compiling under Borland C Builder / No BEGIN_EXTERN_C?

2001-02-13 Thread Andi Gutmans
There is no good reason the BEGIN_EXTERN_C() haven't been included. We'd welcome a patch. Check out the other places we do put these to get an idea where they should be. In any case, one thing I've wanted to do for a long time is get PHP to compile with the freeware Borland C++ compiler.

RE: [PHP-DEV] Changing implementation of get_meta_tags for 4.0.5

2001-02-13 Thread Andi Gutmans
not change the implementation. If you guys want it to be another function could someone suggest a name for it? get_meta_tags_ex?? Sean -Original Message- From: Andi Gutmans [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 12:41 AM To: Andr Langhorst; [EMAIL PROTE

Re: [PHP-DEV] Time for 4.0.5?

2001-02-19 Thread Andi Gutmans
At 09:31 AM 2/19/2001 +0100, Sascha Schumann wrote: Hi, what do people think about a PHP 4.0.5 release? We have about 70 change entries in NEWS. Some of the changes are fundamentally needed for some extensions to work correctly or to compile at all. Let me know

[PHP-DEV] popen() on Win32

2001-02-20 Thread Andi Gutmans
I can never remember who said they were mentioning on getting popen() to work on Win32. In any case, if someone's working on it any chance this can make it in for 4.0.5? Andi -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP-DEV] pack()/unpack()

2001-02-22 Thread Andi Gutmans
It seems like pack()/unpack() has it's own endianess code instead of using htonl(), htons(). Is there a reason for this? It would be nice to fix this for 4.0.5 because right now if you use pack() on Linux and unpack() on Solaris it doesn't quite work. It seems to me as if fixing this shouldn't

Re: [PHP-DEV] Renaming fopen-wrappers.[ch] to fopen_wrappers.[ch]

2001-02-24 Thread Andi Gutmans
No problem. By the way, any idea how well PHP runs on OS/390? Does it actually work natively? Does it run as an Apache module? Andi At 09:23 PM 2/23/2001 +0100, Sascha Schumann wrote: Background: Apparently, OS/390 cannot handle files containing dashes. Because almost all of our

[PHP-DEV] Re: [ZEND-ENGINE] cvs: Zend / modules.h zend_builtin_functions.c

2001-02-24 Thread Andi Gutmans
Hopefully fixed now. Andi At 11:06 PM 2/24/2001 +0100, Sebastian Bergmann wrote: Andi Gutmans wrote: andiSat Feb 24 23:16:58 2001 EDT Modified files: /Zend modules.h zend_builtin_functions.c Log: - Add exports from Daniel Beulshausen cgi_main.c ..\main

[PHP-DEV] Japanese PHP

2001-02-25 Thread Andi Gutmans
Hi, I remember there was a patch around for PHP 3.0.x which added some Japanese support functions. Anyone know how many Japanese actually used these functions and how many are using Vanilla PHP? Does Japanese actually work in a decent way with PHP? From the zillions of Japanese sites I've

Re: [PHP-DEV] Re: Japanese PHP

2001-02-25 Thread Andi Gutmans
At 08:44 PM 2/25/2001 +, Wez Furlong wrote: Andi Gutmans wrote: Does Japanese actually work in a decent way with PHP? From the zillions of Japanese sites I've seen running it I'd guess it works :) Theres a bunch of extensions that add multibyte support from ftp

Re: [PHP-DEV] ctype function (re?)naming

2001-02-27 Thread Andi Gutmans
One of the below IMO. Andi At 10:26 AM 2/26/2001 +0100, Hartmut Holzgraefe wrote: RFC: what should their names be in 4.0.5? ( ) stay with ctype_alpha() ... (X) switch to ctype_isalpha() ... () switch to ctype_isalpha() ... and have ctype_alpha() aliases (X) switch to

Re: [PHP-DEV] SLEEP and MAXEXECUTIONTIME and NAUGHTY modules

2001-02-27 Thread Andi Gutmans
At 12:11 PM 2/26/2001 +, Sam Liddicott wrote: I notice that usleep and sleep both clash on solaris with Max-execution-time. 1) I notice various modules using sleep: db, hyperwave, mysql, oci8, satellite which seems to break max execution time. Any idea why and where they are using sleep()?

Re: [PHP-DEV] SSL socket support (LONG!)

2001-02-27 Thread Andi Gutmans
Do you have time to map where in PHP we are currently using socket code? I think according to how many places and how we are using it, it'll help us decide how much redesigning we can do. Also keep Win32 in mind while thinking of this. I didn't have much time but I did read through your RFC

Re: [PHP-DEV] SSL - joining sockets and files

2001-02-28 Thread Andi Gutmans
This sounds pretty good. I'll try and look at the code this weekend. Some of the code is really ugly especially the legacy code. When you say there are places which need a FILE * do you mean they just need to check the id and check that it's a FILE * or do they convert descriptors to FILE *

Re: [PHP-DEV] SSL - joining sockets and files

2001-02-28 Thread Andi Gutmans
Too early in the morning. I just remembered fdopen() :) Andi At 07:14 AM 3/1/2001 +0200, Andi Gutmans wrote: This sounds pretty good. I'll try and look at the code this weekend. Some of the code is really ugly especially the legacy code. When you say there are places which need a FILE * do you

Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] RE: [PHP-QA] Re: [PHP-DEV] ctype function (re?)naming

2001-03-01 Thread Andi Gutmans
We're probably best off staying with the status quo and trying to keep a close look at any new modules which make it into the tree and modules which have been added since 4.0.4 (or maybe a small time before). It doesn't make much sense to go back and break old names and it doesn't make lots of

Re: [PHP-DEV] NSAPI Modifications for iPlanet/NES 4.1

2001-03-01 Thread Andi Gutmans
Can you please send it as an attachment and I'll apply it. (It would also be good if someone who is familar with the nsapi extension to take a look at the patch). BTW what are MALLOC() and FREE()? Andi At 05:14 PM 3/1/2001 -0600, Andrew Johnson wrote: Someone said they'd commit the following

Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] RE: [PHP-QA] Re: [PHP-DEV]ctype function (re?)naming

2001-03-02 Thread Andi Gutmans
think :'( Andi At 09:24 PM 3/1/2001 -0700, Ron Chmara wrote: Andi Gutmans wrote: It doesn't make much sense to go back and break old names and it doesn't make lots of sense to create a zillion of aliases. I guess if there are some names which in particular need fixing because

Re: [PHP-DEV] NSAPI patch / CVS access

2001-03-02 Thread Andi Gutmans
I commited your patch. Andi At 01:26 PM 3/2/2001 +0100, Whitehead Anthony wrote: Hiyas, I just tried to commit the attached patch to the NSAPI module but it seems my CVS write access has expired ;) Here attached is the patch for NSAPI from Andrew Johnson, I've tested it on several UNIX

Re: [PHP-DEV] NSAPI patch / CVS access

2001-03-02 Thread Andi Gutmans
I just reviewed the patch quickly. Are you sure that using MALLOC() for the SG(request_info) variables is OK? Are these all variables which are supposed to be freed by the SAPI module? (I think they are but I don't have time to double check this). If the SAPI module is in charge then it's OK

[PHP-DEV] Re: about users of japanese localized php3

2001-03-02 Thread Andi Gutmans
At 01:10 AM 3/3/2001 +0900, Rui Hirokawa wrote: Currently, I am working to make some patch for php4/main/php_variables.c to add the encoding translation capability using ext/jstring made by Mr. Tsukada supporting japanese characters handling functions. Great. Interesting to see what you guys can

Re: [PHP-DEV] NSAPI patch / CVS access

2001-03-02 Thread Andi Gutmans
At 10:29 AM 3/2/2001 -0600, Andrew Johnson wrote: Andi Gutmans wrote: I just reviewed the patch quickly. Are you sure that using MALLOC() for the SG(request_info) variables is OK? I think so. php4_execute() contains nsapi_request_ctor(NSLS_C SLS_CC); retval

Re: [PHP-DEV] Re: about users of japanese localized php3

2001-03-04 Thread Andi Gutmans
Please send me your Email (as it should be in the CVS account), preferred user name and password. Andi At 12:03 PM 3/5/2001 +0900, [EMAIL PROTECTED] wrote: Hello. I am Takuya Tsukada. I wrote of some Japanese module for PHP. I would like to commit the Japanese extention to CVS. So, Will you

Re: [PHP-DEV] mcrypt

2001-03-04 Thread Andi Gutmans
What bugs? Can you describe them and cut them down to something very simple which will allow us to fix it? Andi At 01:48 PM 3/5/2001 +1000, Cameron wrote: when are the bugs with the latest mcrypt going to be fixed?!? Cameron -- PHP Development Mailing List http://www.php.net/ To

Re: [PHP-DEV] Bug #8565 -- analyzed, but...?

2001-03-06 Thread Andi Gutmans
I couldn't reproduce this problem. It only happens when you declare the sub-class before you declare the base class. Is this what is happening to you? Or can you send me a very short reproducing set of scripts. Thanks, Andi At 03:17 AM 3/6/2001 -0800, Richard Lee-Morlang wrote: I ran into

[PHP-DEV] Re: [PHP-QA] ctype function (re?)naming

2001-03-06 Thread Andi Gutmans
Can you please resend :) Andi At 11:02 AM 3/6/2001 -0700, Zak Greant wrote: Hello Everyone, Is anyone bold enough to comment on the suggested names besides Phil? I know that you all have opinions... Don't make me use humor again. This time, I'll make fun of people by name (and by reference -

Re: [PHP-DEV] copy of object is not copy PHP4.0.4 serious BUG

2001-03-06 Thread Andi Gutmans
There is a problem with deeply places references (often objects) not being full copy constructed but the reference is copied. In order to change the behavior we would have to do a deep copy *everytime* we copy a complex structure. This would be very bad performance wise so except for thinking

[PHP-DEV] Re: [PHP-QA] ctype function (re?)naming

2001-03-06 Thread Andi Gutmans
For starters (too long of a list and not that easy to decide on each and everyone of them) I'll give you what I can think of :) I started making a list of what looks OK to me but it became too long so I'll just mention what isn't OK in my opinion. Consider me pretty much pro all the other

Re: [PHP-DEV] object-method() chaining

2001-03-06 Thread Andi Gutmans
Hi, We are aware of this limitation. I am trying to think of a good way to solve this and it isn't trivial. I'll try and come up with something. Andi At 02:41 PM 3/6/2001 -0600, The Doctor What wrote: I'm currently working on the DB project from h*ll. Why? Because a lot of the tables of the

[PHP-DEV] Re: [PHP-QA] ctype function (re?)naming

2001-03-06 Thread Andi Gutmans
At 05:05 PM 3/6/2001 -0700, Zak Greant wrote: Andi wrote: [snip] I don't have any complaints or helpful comments on what was above this. 3) Why change the imap ones to not include underscores? Looks as if you did the reverse here :) Removing the underscores was the choice that meant the

[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] ctype function (re?)naming

2001-03-06 Thread Andi Gutmans
At 05:26 PM 3/6/2001 -0700, Zak Greant wrote: Derick Rethans wrote: [snip] 6) I think create_function() is OK. There was a long thread which decided upon this name. Same for function_exists(). Can't we call it lambda()? =) That would make a sensible alias for it. :) Nah no aliasing to

Re: [PHP-DEV] Re: [PHP-QA] ctype function (re?)naming

2001-03-06 Thread Andi Gutmans
At 05:43 PM 3/6/2001 -0700, Zak Greant wrote: Sterling wrote: Overall I think this is very good. I have a few problems with it (all prefixed with a large IMHO :)... :) array_multisort - array_multi_sort nah, doesn't sound as good as array_multisort, multisort should be a single

[PHP-DEV] Re: [PHP-QA] ctype function (re?)naming

2001-03-06 Thread Andi Gutmans
At 11:28 PM 3/6/2001 -0700, Zak Greant wrote: Andi wrote: At 05:05 PM 3/6/2001 -0700, Zak Greant wrote: Andi wrote: [snip] I don't have any complaints or helpful comments on what was above this. 3) Why change the imap ones to not include underscores? Looks as if you did

Re: [PHP-DEV] Re: [PHP-QA] ctype function (re?)naming

2001-03-07 Thread Andi Gutmans
At 11:07 AM 3/7/2001 +0100, Hellekin O. Wolf wrote: At 23:48 06/03/2001 -0700, Zak Greant wrote: Andi wrote: [snip] Yep. Let's start doing some damage. bzip2 is a very good victim. bzclose - bz_close bzcompress - bz_compress bzdecompress - bz_decompress bzerrno - bz_errno bzerror

[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] ctype function (re?)naming

2001-03-07 Thread Andi Gutmans
At 04:34 PM 3/7/2001 +0100, Hellekin O. Wolf wrote: At 17:22 07/03/2001 +0200, Andi Gutmans wrote: *** What is the difference between error ad errstr ? Maybe errstr should be changed to errmsg ? (Did I say that elsewhere ? ;-) As the file extension is .bz2, maybe the prefix should be bz2_

[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] ctype function (re?)naming

2001-03-07 Thread Andi Gutmans
At 10:20 AM 3/7/2001 -0700, Zak Greant wrote: Andi wrote: At 04:34 PM 3/7/2001 +0100, Hellekin O. Wolf wrote: At 17:22 07/03/2001 +0200, Andi Gutmans wrote: *** What is the difference between error ad errstr ? bzerror returns an array containing the error string and error number

[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] ctype function (re?)naming

2001-03-08 Thread Andi Gutmans
At 02:20 PM 3/8/2001 +0100, Hellekin O. Wolf wrote: At 22:33 07/03/2001 +0200, Andi Gutmans wrote: Why not bzip2_? *** Well, if bzip2_, then gzip_ ! If gz_ then bz_ or bz2_. Am I wrong or too fastidious ? No, because gz_ has existed for a long time. If we'd give it a name today we'd probably

[PHP-DEV] Re: popen() spans 100 processes

2001-03-09 Thread Andi Gutmans
I'm not quite sure if it is related but in general popen() doesn't work on non-console PHP under windows. I think your CGI is running without a console and the same happens with ISAPI. Someone is working on fixing this Windows issue but no results yet. Andi At 07:20 AM 3/9/2001 +0100, Andr

[PHP-DEV] Re: Static vars in methods

2001-03-09 Thread Andi Gutmans
Yeah, it's supposed to be this way. We copied C++. Andi At 10:50 AM 3/9/2001 -0600, Andrei Zmievski wrote: Just ran into something (well, actually searching for it) and wanted to know what everyone's thoughts on this were and whether it should stay that way. ?php class Foo { function

[PHP-DEV] Re: Static vars in methods

2001-03-09 Thread Andi Gutmans
00, Andrei Zmievski wrote: On Fri, 09 Mar 2001, Andi Gutmans wrote: We need to think of static class variables. I don't think it's very easy to do this in a way which wouldn't cause a general performance loss but I'll put on my thinking cap. Ok, I was gonna try to hack it in mysel

[PHP-DEV] Re: static call bugs?

2001-03-09 Thread Andi Gutmans
At 12:56 AM 3/10/2001 +0100, Andr Langhorst wrote: Hi, 1) I am currently completing the php documentation to cover all undocumented features and I have noticed that using a static method call to the same class from on instanciated object exhibits the presence of the instance within the static

Re: [PHP-DEV] Re: static call bugs?

2001-03-09 Thread Andi Gutmans
At 01:30 AM 3/10/2001 +0100, Andr Langhorst wrote: There are no static functions in PHP. This syntax is used to call a method of the parent. It can be used to call other methods and thus have parent::foo(); If you remember, it has been implemented *after* [classname]::[functionname]() ... I

Re: [PHP-DEV] static call bugs?

2001-03-09 Thread Andi Gutmans
If you have: class foo { function blahblah() { } } class foobar extends foo { } class bar extends foobar { function hey() { foo::blahblah(); -- You want $this to be correct in foo::blahblah. } } Andi At 01:32 AM

Re: [PHP-DEV] Re: static call bugs?

2001-03-10 Thread Andi Gutmans
At 08:49 PM 3/10/2001 +0100, Andr Langhorst wrote: When you say that people shouldn't use references because of performance what do you mean? I think you are right in general but when you are passing around objects you should use references. for example: function foo($obj) { } foo($myobject);

Re: [PHP-DEV] Re: [ZEND-ENGINE] cvs: Zend / zend_API.c zend_API.h

2001-03-12 Thread Andi Gutmans
I commited a patch but didn't test it. Andrei, please make sure I don't have some dumb bug there. Andi At 10:12 AM 3/12/2001 -0600, Jason Greene wrote: strlcpy, and strlcat are in the win32 build (main/strlcat.c main/strlcpy.c) why dont you malloc a buffer that would fit the sprintf data, and

Re: [PHP-DEV] Re: [ZEND-ENGINE] cvs: Zend / zend_API.c zend_API.h

2001-03-12 Thread Andi Gutmans
Because snprintf() sucks and what we did is faster :) Andi At 09:25 AM 3/12/2001 -0800, Shane Caraveo wrote: Why not add a: #define snprintf _snprintf to the zend_config.w32.h file? That should take care of the mentioned compile problem under windows. - Original Message - From:

Re: [PHP-DEV] whats the standard for OO builtin_functions?

2001-03-12 Thread Andi Gutmans
If it's not an alias I think you probably want PHP_FE(member_function, NULL) and use PHP_FUNCTION(member_function) in the function decleration. Andi At 12:06 PM 3/12/2001 -0600, Jason Greene wrote: Can anyone tell me what the standard is for the builtin_functions function_entry in OO, should

Fwd: RE: [PHP-DEV] 4.0.5RC1

2001-03-14 Thread Andi Gutmans
Any idea what the problem could be? I doubt Mac OS X uses \r\n. Andi From: Lon Baker [EMAIL PROTECTED] To: [EMAIL PROTECTED], "Zeev Suraski" [EMAIL PROTECTED], [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: RE: [PHP-DEV] 4.0.5RC1 The source compiles and installs as a DSO under: Mac OS X

[PHP-DEV] Re: Memory corruption in Zend, should we allow this?

2001-03-14 Thread Andi Gutmans
I tried the following (command line): ? $foobar-rfoo=$a; $foobar-r2foo=$foobar-rfoo; $foobar-rfoo=4; print $a; and it didn't crash. Are you sure this reproduces a crash for you? On which platform? And any other information you can give us. Andi At 03:27 AM 3/15/2001 +0100, Andr Langhorst

[PHP-DEV] Re: [PHP-QA] RE: [PHP-DEV] 4.0.5RC1

2001-03-15 Thread Andi Gutmans
At 04:03 PM 3/13/2001 -0800, Lon Baker wrote: The source compiles and installs as a DSO under: Mac OS X 10.0 RC1 Apache 1.3.19 MySQL 3.23.34a Config line used: ./configure --with-apxs=/usr/sbin/apxs --enable-track-vars --with-mysql=/usr/local/mysql --with-zlib With the following issues:

[PHP-DEV] Re: [PHP-QA] QA: chunked output buffering does not work on win32 + internal function output callbacks

2001-03-15 Thread Andi Gutmans
This is extremely reproducible. Definitely a show stopper until Zeev fixes this one. Andi At 01:38 AM 3/14/2001 +0100, Andr Langhorst wrote: Hi Zeev, chunked output buffering seems to work on Linux. Unfortunately several things do not work (anymore) on win32 (tested CGI): 1) Using

Re: [PHP-DEV] Getting Started with new module

2001-03-18 Thread Andi Gutmans
I'm not too familiar with Tuxedo but the first step would be for you to actually write a PHP module which interfaces with Tuxedo. Once you're done with it/tested it and you feel it's worth putting into PHP we can open you a CVS account. I don't think there are many people who will need this

RE: [PHP-DEV] feature request

2001-03-18 Thread Andi Gutmans
It should be possible to do this. I'll look into it. But I also need to think about how much sense it makes :) Today you're asking for isset(...,...,...). Tomorrow you will ask to know which one was not set if it failed. So I hope what youreally want is only the first. Andi At 09:42 PM

RE: [PHP-DEV] feature request

2001-03-19 Thread Andi Gutmans
Suraski [mailto:[EMAIL PROTECTED]] Sent: Monday, 19 March, 2001 7-04 aM To: Phil Driscoll Cc: Chris Newbill; Andi Gutmans; PHP DEV Subject: Re: [PHP-DEV] feature request Phil is right. The only thing that may be both useful and practical would be isset() on multiple variables

RE: [PHP-DEV] feature request

2001-03-19 Thread Andi Gutmans
Newbill; Andi Gutmans; PHP DEV Subject: Re: [PHP-DEV] feature request Phil is right. The only thing that may be both useful and practical would be isset() on multiple variables, returning either true or false. Zeev At 11:31 19/3/2001, Phil Driscoll wrote: $a = 1; $b = 2

Re: [PHP-DEV] feature request

2001-03-19 Thread Andi Gutmans
At 07:58 PM 3/19/2001 +, Phil Driscoll wrote: My earlier post to the list doesn't seem to have arrived yet, so here it is again. You'll note from the posting that I'm not keen on the patch staying in. There are considerable efforts being made by several of us on the QA team trying to make the

Re: [PHP-DEV] feature request

2001-03-19 Thread Andi Gutmans
to handle multi args, we could offer things in the new function such as an optional argument that passes back an array of results. -Jason - Original Message - From: "Phil Driscoll" [EMAIL PROTECTED] To: "Chris Newbill" [EMAIL PROTECTED]; "Zeev Suraski" [EMAIL PRO

Re: [PHP-DEV] feature request

2001-03-19 Thread Andi Gutmans
I think it makes sense to have empty() behave the same as isset() (they are brother functions). empty($a, $b, $c) would return 0 if non are empty and 1 if one of those variables is empty. Andi At 12:22 AM 3/20/2001 -0500, Jon Parise wrote: On Mon, Mar 19, 2001 at 11:35:31PM +0200, Zeev

[PHP-DEV] Re: [PHP-CVS] cvs: php4(PHP_4_0_5) /sapi/fastcgi

2001-03-20 Thread Andi Gutmans
At 08:32 PM 3/20/2001 +0100, Derick Rethans wrote: On Tue, 20 Mar 2001, Andi Gutmans wrote: andi Tue Mar 20 10:13:21 2001 EDT Added files: (Branch: PHP_4_0_5) /php4/sapi/fastcgiCREDITS Makefile.in README.FastCGI config.m4

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4(PHP_4_0_5) /sapi/fastcgi

2001-03-20 Thread Andi Gutmans
At 07:41 PM 3/20/2001 +0100, Jani Taskinen wrote: On Tue, 20 Mar 2001, Andi Gutmans wrote: At 08:32 PM 3/20/2001 +0100, Derick Rethans wrote: On Tue, 20 Mar 2001, Andi Gutmans wrote: andi Tue Mar 20 10:13:21 2001 EDT Added files: (Branch: PHP_4_0_5

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4(PHP_4_0_5) /sapi/fastcgi

2001-03-20 Thread Andi Gutmans
At 07:57 PM 3/20/2001 +0100, Jani Taskinen wrote: On Tue, 20 Mar 2001, Andi Gutmans wrote: I couldn't find any indication that this can break any of the other sapi builds so I don't think there's a problem with adding it. Okay. But still I find it very annoying that we don't follow the rules

[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4(PHP_4_0_5) /sapi/fastcgi

2001-03-21 Thread Andi Gutmans
At 05:03 PM 3/21/2001 +0100, Sascha Schumann wrote: The bottom line is that, as I said, the trick in good opensource software is taking calculated risks, and mixing agility with quality assurance. One can look through your binary glasses, and then it's either complete lack of quality, or

[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4(PHP_4_0_5) /sapi/fastcgi

2001-03-21 Thread Andi Gutmans
A couple of these were buffer overflows IIRC which were security issues. Remember the group@ emails about those? Andi At 07:17 PM 3/21/2001 +0100, Sascha Schumann wrote: I think most (probably not all) pl's were sparked due to security bugs which were found and we took the opportunity to add

[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4(PHP_4_0_5) /sapi/fastcgi

2001-03-21 Thread Andi Gutmans
, the error_reporting() pl1 in 4.0.1 was due to a bug which was in the CVS a long time. It was not a spontaneous bug that was introduced. Andi At 07:50 PM 3/21/2001 +0100, Sascha Schumann wrote: On Wed, 21 Mar 2001, Andi Gutmans wrote: A couple of these were buffer overflows IIRC which were security

Re: [PHP-DEV] Question about socket ext. file descriptors

2001-03-29 Thread Andi Gutmans
Why do you need to rely on such behavior? Are you trying to do something naught? :) I think in general it's not a good idea to rely on the value and type of resources (even though this is an integer). I'm not quite sure why it returns integers and not resources. Looks like a bad thing to me as

Re: [PHP-DEV] Question about socket ext. file descriptors

2001-03-29 Thread Andi Gutmans
but in the least it should be fixed not to leak fd's even if you go with the integer fix implementation. But it is not very PHP to do that. You already have an fd resource as far as I know in ext/standard so you can use that. Andi At 02:02 AM 3/29/2001 -0800, Lars Torben Wilson wrote: Andi

Re: [PHP-DEV] Question about socket ext. file descriptors

2001-03-29 Thread Andi Gutmans
At 03:35 PM 3/29/2001 +0200, Zeev Suraski wrote: Note that the situation isn't as bad as you thought - it's not that it's not using the resource mechanism. It is, if it wasn't, we'd be getting loads of complaints from people running out of descriptors very quickly. It just uses old, PHP 3

Re: [PHP-DEV] Question about socket ext. file descriptors

2001-03-29 Thread Andi Gutmans
At 03:47 PM 3/29/2001 +0200, Zeev Suraski wrote: At 15:41 29/3/2001, Andi Gutmans wrote: At 03:35 PM 3/29/2001 +0200, Zeev Suraski wrote: Note that the situation isn't as bad as you thought - it's not that it's not using the resource mechanism. It is, if it wasn't, we'd be getting loads

Re: [PHP-DEV] fastcgi

2001-03-29 Thread Andi Gutmans
I don't have time to look at it but the error about sapi_globals use SLS_FETCH(); in the beginning of that function. The S_ISREG is defined in fopen-wrappers.c. We should probably move it to someplace more central so that other files see it (it exists on some systems automagically but not on

Re: [PHP-DEV] PHP 4.0.5 Release Midgard Problems

2001-04-01 Thread Andi Gutmans
I very much liked Andrei's implementation of Smary templates. It uses the Zend (PHP) scripting language and caches templated scripts without messing with the core of PHP. I haven't used it but from reading the specs it looks like Andrei his guys did a great job. Andi At 11:10 AM 4/1/2001

Re: [PHP-DEV] Can we have a PING function?

2001-04-01 Thread Andi Gutmans
Do most servers and OS's (for example Windows) support the sending of a UDP package to the echo port? Andi At 12:39 AM 4/2/2001 -0400, Dave Crawford wrote: Before I ask for a PING function in a future build of PHP, is there a way to ping a remote host using the existing PHP functions or

Re: [PHP-DEV] mail.c

2001-04-02 Thread Andi Gutmans
Seems to me like these lines can be erased. ext/standard is always compiled in and doesn't really need ZEND_GET_MODULE() and in any case ZEND_GET_MODULE(odbc) seems bogus :) Andi At 04:35 PM 4/2/2001 +0100, James Moore wrote: I was just reading through mail.c and this stuck out to me as

Re: [PHP-DEV] Re: [PHP-QA] PHP 4.0.5 Release Candidate testing

2001-04-02 Thread Andi Gutmans
Andrei, Can you please merge this to 4.0.5. I think it should be in and we better release a final RC6. I think it's better to have another quick RC (I can roll it today or tomorrow) before we get 4.0.5 out of the door. Andi At 08:25 AM 4/2/2001 -0500, Andrei Zmievski wrote: On Mon, 02 Apr

Re: [PHP-DEV] Re: [PHP-QA] PHP 4.0.5 Release Candidate testing

2001-04-02 Thread Andi Gutmans
Thanks! Does anyone else have any critical bug fixes which need to be in 4.0.5? (I mean critical ones and not huge patches). Andi At 11:17 AM 4/2/2001 -0500, Andrei Zmievski wrote: It's done. On Mon, 02 Apr 2001, Andi Gutmans wrote: Andrei, Can you please merge this to 4.0.5. I think

Re: [PHP-DEV] Can we have a PING function?

2001-04-02 Thread Andi Gutmans
Maybe Dave will volunteer to implement this for 4.0.6 :) Andi At 10:42 AM 4/2/2001 +0200, Alexander Feldman wrote: Do most servers and OS's (for example Windows) support the sending of a UDP package to the echo port? Andi Yeah, What about a new ICMP extension - ping, traceroute,

[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] PHP 4.0.5 Release Candidate testing

2001-04-02 Thread Andi Gutmans
At 05:37 PM 4/2/2001 +0100, Anil Madhavapeddy wrote: Andi Gutmans wrote: Does anyone else have any critical bug fixes which need to be in 4.0.5? (I mean critical ones and not huge patches). Zeev's output buffering fix hasn't been committed yet; it's a one-line change, and it makes

[PHP-DEV] RE: [PHP-QA] PHP 4.0.5 Release Candidate testing

2001-04-02 Thread Andi Gutmans
At 03:18 PM 4/2/2001 +0100, James Moore wrote: 1. The function array_flip($array) puts one extra zero byte at the end of each element in the return array thus making the result non binary safe. I've just fixed it in CVS. How critical is this? does it need to also be in 4.0.5 (sorry

[PHP-DEV] RC6 available!

2001-04-02 Thread Andi Gutmans
You can get RC6 at http://cvs.php.net/~andi/php-4.0.5RC6.tar.gz (no time to commit to phpweb cvs and wait for it to update, if someone has time then even better, I need some sleep :) In case you're testing it within the next few hours you might need to "touch *" the files in the php4/

[PHP-DEV] Re: [PHP-QA] PHP-4.0.5-RC6

2001-04-03 Thread Andi Gutmans
Anyone have an idea why this happens? Andi At 05:37 PM 4/3/2001 +0200, Andrew Sitnikov wrote: Hello php-qa, test.php ? echo $test; ? http://host/test.php?test=1;2;3 4.0.4pl1 Result: 1;2;3 4.0.5RC6 Result: 1 Best regards, Andrew Sitnikov e-mail : [EMAIL

Re: [PHP-DEV] Re: [PHP-QA] PHP-4.0.5-RC6

2001-04-03 Thread Andi Gutmans
'' and ';' are valid delimiters in a URL, so the new 4.0.5 behaviour is actually the valid one, I believe. Refer to the XHTML specification, or check out the bugs db for this. Anil - Original Message - From: "Andi Gutmans" [EMAIL PROTECTED] To: "Andrew Sitnikov" [EMAIL PROTECTE

Re: [PHP-DEV] Re: [PHP-QA] PHP-4.0.5-RC6

2001-04-03 Thread Andi Gutmans
:21 3/4/2001, Andi Gutmans wrote: Anyone have an idea why this happens? Andi At 05:37 PM 4/3/2001 +0200, Andrew Sitnikov wrote: Hello php-qa, test.php ? echo $test; ? http://host/test.php?test=1;2;3 4.0.4pl1 Result: 1;2;3 4.0.5RC6 Result: 1

Re: [PHP-DEV] RE: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] PHP-4.0.5-RC6

2001-04-03 Thread Andi Gutmans
James, You have to be aware that now PHP has such a big user base we need to be very careful in the changes we make especially when we can be pretty certain that it might burn quite a lot of people. We can break compatibility more easily when we have a major release (as from PHP 3 to PHP 4)

RE: [PHP-DEV] RE: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] PHP-4.0.5-RC6

2001-04-03 Thread Andi Gutmans
At 09:52 PM 4/3/2001 +0100, James Moore wrote: Well, I dont think any of us really know how much damage it will cause. But on the other hand we can do this for years and just say well we mustn't break backwards compatibility and we will end up with somthing looking and behaving like perl. When we

[PHP-DEV] Re: [PHP-QA] Re: ; arg seperator

2001-04-03 Thread Andi Gutmans
At 02:46 PM 4/3/2001 -0600, Joey Smith wrote: Just wanted to toss in my .02 here... Anyone who wrote scripts in the past expecting: foo.php?a=1;2;3 to get "$a=1;2;3" was relying on a bug, or at the very LEAST an undocumented feature. So if it goes away, it goes away. It should never have worked

[PHP-DEV] Re: [PHP-QA] Re: ; arg seperator

2001-04-03 Thread Andi Gutmans
At 03:18 PM 4/3/2001 -0600, Joey Smith wrote: Speaking of this, I think we need to collect all of these types of issues that are waiting for a "4.1" release somewhere, so we can get a clear idea of when 4.1 is appropriate. Anyone know of any off-hand? If not, I can go search the archives... In

  1   2   3   4   5   6   7   8   9   10   >