Re: [PHP-DEV] Profiling PHP

2002-05-14 Thread Stig S. Bakken
Okay that's more like it, emalloc on top. That's what I would expect in the first place. And I guess Zeev is right that it doesn't really tell you anything expect from that PHP does its share of alloc/free, and then some. - Stig On Mon, 2002-05-13 at 23:06, Rasmus Lerdorf wrote: Well,

[PHP-DEV] PHP 4.2.1 release announcement

2002-05-14 Thread Derick Rethans
Hello, PHP 4.2.1 is released today, it's a bug fix release which addresses some serious bugs (and a lot of other little bugs) in 4.2.0. The full release announcement follows below: This bug fix release solves a few bugs found in PHP 4.2.0. PHP 4.2.1 includes the following fixes:

Re: [PHP-DEV] Important: make test/run-tests.php broken?

2002-05-14 Thread Markus Fischer
Hi, seems nothing happened there yet. CVS HEAD has the same problem. Just deleting the CGI in ~/php4/php does the trick and runs the test suite properly. - Markus On Fri, Mar 15, 2002 at 04:58:36PM +, Wez Furlong wrote : Damn - sapi/cgi is being run and the http

[PHP-DEV] Creating extension module for PHP

2002-05-14 Thread Simon Fogg
Hi, I am a newcomer to PHP so I apologise in advance if my question seems trivial or has already been answered on this site before. I have been tasked with creating an HTML based interface for one of our products. We already have a mature API set used to configure the product in the form of a

[PHP-DEV] Re: Creating extension module for PHP

2002-05-14 Thread Martin Wickman
Simon Fogg wrote: Hi, I am a newcomer to PHP so I apologise in advance if my question seems trivial or has already been answered on this site before. I have been tasked with creating an HTML based interface for one of our products. We already have a mature API set used to configure the

Re: [PHP-DEV] Important: make test/run-tests.php broken?

2002-05-14 Thread Stig S. Bakken
Btw, now (in HEAD) you can run pear run-tests in any directory with tests in it. No need for a makefile. - Stig On Tue, 2002-05-14 at 13:05, Markus Fischer wrote: Hi, seems nothing happened there yet. CVS HEAD has the same problem. Just deleting the CGI in ~/php4/php does the

[PHP-DEV] Re: Creating extension module for PHP

2002-05-14 Thread Simon Fogg
Thanks Martin, I will have a look. One other question is to do with the Mac OSX platform. I noticed that extension modules are compiled down to dll's - what form do they take on the Mac platform, or can they even be created? I seem to remember reading that these modules can be created for UNIX

[PHP-DEV] Probably a simple answer...

2002-05-14 Thread Robert Cummings
zval containers that are of string type don't seem to hold a null terminating character, but rather directly store the length of the string - I note this because of how the ZVAL_STRING macro works... My question then is what is the best way to compare two strings in a zval? I would imagine a

Re: [PHP-DEV] Probably a simple answer...

2002-05-14 Thread brad lafountain
Well i do believe that the zval string SHOULD be null termiated and have the length stored. But zend does provied this api function zend_binary_zval_strcmp(zval *, zval*); - Brad --- Robert Cummings [EMAIL PROTECTED] wrote: zval containers that are of string type don't seem to hold a

Re: [PHP-DEV] Probably a simple answer...

2002-05-14 Thread Robert Cummings
brad lafountain wrote: Well i do believe that the zval string SHOULD be null termiated and have the length stored. You would think so, but on further thought, if that were the case you wouldn't be able to store compressed data from gzip in a string because the null bytes everywhere would

Re: [PHP-DEV] Probably a simple answer...

2002-05-14 Thread Robert Cummings
brad lafountain wrote: Well i do believe that the zval string SHOULD be null termiated and have the length stored. But zend does provied this api function zend_binary_zval_strcmp(zval *, zval*); Oh and I almost forgot... THANKS... this appears to be exactly what I was looking for :)

Re: [PHP-DEV] Probably a simple answer...

2002-05-14 Thread Zeev Suraski
zval strings must be NULL terminated, even if they contain binary data. The str.val.len property represents the length of the string w/o the terminating NULL. Zeev At 16:39 14/05/2002, Robert Cummings wrote: brad lafountain wrote: Well i do believe that the zval string SHOULD be null

Re: [PHP-DEV] Probably a simple answer...

2002-05-14 Thread Robert Cummings
Robert Cummings wrote: brad lafountain wrote: Well i do believe that the zval string SHOULD be null termiated and have the length stored. You would think so, but on further thought, if that were the case you wouldn't be able to store compressed data from gzip in a string because the

Re: [PHP-DEV] Probably a simple answer...

2002-05-14 Thread Simon Fogg
I believe you hijacked my thread - The original subject was: 'Creating extension module for PHP'! Brad Lafountain [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Well i do believe that the zval string SHOULD be null termiated and have the length stored. But

Re: [PHP-DEV] Probably a simple answer...

2002-05-14 Thread Robert Cummings
Simon Fogg wrote: I believe you hijacked my thread - The original subject was: 'Creating extension module for PHP'! I was asking about specific information about specific functionality, your thread asks about how to write an extension... I already know how and have done so, I'd just like to

[PHP-DEV] [PATCH] Bug #14407: Win32 SendMail function doesn't use From: in SMTP MAIL FROM command

2002-05-14 Thread Michael Sisolak
Diff against current HEAD for patch for bug #14407. This allows the return path to automatically be set to the from address for Win32 sendmail. Michael Sisolak [EMAIL PROTECTED] __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience

Re: [PHP-DEV] Probably a simple answer...

2002-05-14 Thread Simon Fogg
That's o.k.- I'm just grouchy. There seems to be so much information to wade through to find out what you need to know. Since we are on the subject though, and you have already done this sort of thing before, can you tell me whether extensions are supported on MacOSX. My Mac colleague is off

[PHP-DEV] [mfischer@guru.josefine.at: [PHP-CVS] cvs: php4 /win32 sendmail.c sendmail.h]

2002-05-14 Thread Markus Fischer
Hi, This changes I did fix a nasty crash when using 'Cc' in the header parameter to mail() when not being terminated with \r\n. Despite the win32 sendmail code being buggy as hell, I'ld like some feedback of testers (ok, I'm not sure if I really want this :-), anyway

Re: [PHP-DEV] Probably a simple answer...

2002-05-14 Thread Robert Cummings
Simon Fogg wrote: That's o.k.- I'm just grouchy. There seems to be so much information to wade through to find out what you need to know. Since we are on the subject though, and you have already done this sort of thing before, can you tell me whether extensions are supported on MacOSX. My

Re: [PHP-DEV] Probably a simple answer...

2002-05-14 Thread brad lafountain
--- Robert Cummings [EMAIL PROTECTED] wrote: Robert Cummings wrote: brad lafountain wrote: Well i do believe that the zval string SHOULD be null termiated and have the length stored. You would think so, but on further thought, if that were the case you wouldn't be able to

[PHP-DEV] Re: Bug #17184: Interbase 5.1.1.682 compilation

2002-05-14 Thread Daniela Mariaschi
Hi, Some functions added in interbase module raise compiler error. these functions require IB 6 or later cause they work together with the new IB6 API. It seems as in the code there is no control on the IB version installed, and the compiler is always looking for new Api . People who are

Re: [PHP-DEV] [PATCH] Bug #14407: Win32 SendMail function doesn't use From: in SMTP MAIL FROM command

2002-05-14 Thread Markus Fischer
Hi, thanks for your quick repsonse. I've applied your patch with a few changes. - Markus On Tue, May 14, 2002 at 07:27:39AM -0700, Michael Sisolak wrote : Diff against current HEAD for patch for bug #14407. This allows the return path to automatically be set to the from

Re: [PHP-DEV] Re: Bug #17184: Interbase 5.1.1.682 compilation

2002-05-14 Thread derick
On Tue, 14 May 2002, Daniela Mariaschi wrote: Hi, Some functions added in interbase module raise compiler error. these functions require IB 6 or later cause they work together with the new IB6 API. It seems as in the code there is no control on the IB version installed, and the

[PHP-DEV] Exposing zend_execute_data

2002-05-14 Thread Sterling Hughes
Attached is a patch that exposes zend_execute_data in the executor globals, this data is useful for lowerlevel access to the Zend scripting engine, especially when accessing data directly out of the OP structures. -Sterling Index: zend_execute.c

[PHP-DEV] OS X Support

2002-05-14 Thread Mitch Vincent
What's the current status of OS X support? I understand that 4.3 will be the first release to officially support OS X but how much of the work is complete in current CVS? I grabbed the latest yesterday and compiled it -- still had my issues creating files and directories (Where I would get

[PHP-DEV] bug not solved since June 2001

2002-05-14 Thread Chand
hey, i've come across a bug these past few days in regexps, i've been getting mad about this. I looked around in the Bug Database and i found it : http://bugs.php.net/bug.php?id=11461 it's from 4.0.6, dated almost a year and still hasn't been corrected and is not even assigned Any ideas why

Re: [PHP-DEV] bug not solved since June 2001

2002-05-14 Thread Rasmus Lerdorf
It's not a bug. The regex is simply wrong. The ereg() functions are POSIX 1003.2 compliant. Read this: A bracket expression is a list of characters enclosed in `[]'. It normally matches any single character from the list (but see below). If the list begins with

Re: [PHP-DEV] bug not solved since June 2001

2002-05-14 Thread Chand
On Tue, 14 May 2002 09:28:54 -0700 (PDT) Rasmus Lerdorf [EMAIL PROTECTED] wrote: ok thanks. I wasn't sure of myself and since the bug wasn't closed i thought that maybe it had slipped your QA Team. You should close it at least so that people don't get confused on it. Thanks a lot. It's not

Re: [PHP-DEV] OS X Support

2002-05-14 Thread Dan Kalowsky
Hello Mitch! What's the current status of OS X support? I understand that 4.3 will be the first release to officially support OS X but how much of the work is complete in current CVS? PHP 4.3 has had a large number of strides made towards Darwin support. Marko was able to get things like the

Re: [PHP-DEV] Re: [PHP] Re: [PHP-DEV] Timeline for Apache 2 fulluse?

2002-05-14 Thread derick
Hello, these versions of libmcrypt should work fine, you have some stray headers on your system I think. Derick On Tue, 14 May 2002, Rodolfo Gonzalez wrote: On Tue, 14 May 2002, Richard Archer wrote: Aah, but by the same logic, if Apache 2.0 with PHP4 can provide the users with a

Re: [PHP-DEV] Re: [PHP] Re: [PHP-DEV] Timeline for Apache 2 fulluse?

2002-05-14 Thread Rodolfo Gonzalez
On Tue, 14 May 2002 [EMAIL PROTECTED] wrote: these versions of libmcrypt should work fine, you have some stray headers on your system I think. Hmm, that's strange, in fact in my mcrypt.h there are no such definitions, but it's the RPM from Mdk (maybe it's broken). Thanks. -- PHP

Re: [PHP-DEV] Re: [PHP] Re: [PHP-DEV] Timeline for Apache 2 fulluse?

2002-05-14 Thread derick
On Tue, 14 May 2002, Rodolfo Gonzalez wrote: On Tue, 14 May 2002 [EMAIL PROTECTED] wrote: these versions of libmcrypt should work fine, you have some stray headers on your system I think. Hmm, that's strange, in fact in my mcrypt.h there are no such definitions, but it's the RPM from

Re: [PHP-DEV] Safe Mode

2002-05-14 Thread Slava Poliakov
Rasmus Lerdorf wrote: PHP being a web server scripting language is a unique case, for example consider that once apache 2.0 becomes stable, safe_mode will become obsolete, on the other hand the situation described here will become quite deadly if some sort of threaded mode is used. So FD

[PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread Brent R. Matzelle
I could not help but notice that all DOM XML calls use an underscore-based convention: i.e. $mynode-append_child($achild); I am no language lawyer but if you read the DOM Core documentation (http://www.w3.org/TR/DOM-Level-3-Core/core.html) it suggests a case-based (no underscore) convention:

Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread derick
Hello, can you file a change/feature request for this @ bugs.php.net ? Derick On Tue, 14 May 2002, Brent R. Matzelle wrote: I could not help but notice that all DOM XML calls use an underscore-based convention: i.e. $mynode-append_child($achild); I am no language lawyer but if you

Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread Markus Fischer
Hi, not giong to happen. It's a PHP convention to use underscores to separate words (this was discussed ~ half a year ago afaik). - Markus On Tue, May 14, 2002 at 12:49:50PM -0700, Brent R. Matzelle wrote : I could not help but notice that all DOM XML calls use an

Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread Brent R. Matzelle
--- Markus Fischer [EMAIL PROTECTED] wrote: not giong to happen. It's a PHP convention to use underscores to separate words (this was discussed ~ half a year ago afaik). I realize that this is a PHP convention, but I do not think that it is up to PHP developers to change published

Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread derick
On Tue, 14 May 2002, Brent R. Matzelle wrote: --- Markus Fischer [EMAIL PROTECTED] wrote: not giong to happen. It's a PHP convention to use underscores to separate words (this was discussed ~ half a year ago afaik). I realize that this is a PHP convention, but I do not

[PHP-DEV] [PATCH] Suggested fix for #16458: header() does not replace headers but always produces duplicates

2002-05-14 Thread Michael Sisolak
Bug #16458 reports that the header() command does not correctly use the replace parameter (i.e., a header of the same name should be replaced if this parameter is true). The problem is that the standard sapi_add_header_ex function assumes that the sapi being used with deal with any header

Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread Markus Fischer
Hi, btw, not my personal opinion :) I just wanted to let you know this was discussed so you can search the archives for it. Btw, first you said 'w3c convention' now it's a standard? anyway - Markus On Tue, May 14, 2002 at 01:27:40PM -0700, Brent R. Matzelle wrote :

Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread brad lafountain
Why don't we just add alias... so it will be BC and so we don't get shunned on by people like that. - Brad --- Markus Fischer [EMAIL PROTECTED] wrote: Hi, btw, not my personal opinion :) I just wanted to let you know this was discussed so you can search the archives for it.

Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread Brent R. Matzelle
--- brad lafountain [EMAIL PROTECTED] wrote: Why don't we just add alias... so it will be BC and so we don't get shunned on by people like that. That would fit the bill nicely. Brent __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience

Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread Markus Fischer
Hi, I fail to see the advante. Is it only that 'it looks like what the w3c recommends' and 'so users already used to the api have it easier' or did I miss something else? - Markus On Tue, May 14, 2002 at 01:47:22PM -0700, Brent R. Matzelle wrote : --- brad lafountain

Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread Brent R. Matzelle
--- Markus Fischer [EMAIL PROTECTED] wrote: Hi, btw, not my personal opinion :) I just wanted to let you know this was discussed so you can search the archives for it. Understood ;) Btw, first you said 'w3c convention' now it's a standard? anyway Again, I'm no

Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread brad lafountain
Yeah thats pretty much it. It does make it eaiser for people using dom in another lanugage to pick it up in php if it did conform to the standard. Expecially how we are trying to conform the functions to begin with. Instead of having append_child... why not add_child.. - We started conforming

Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread Christian Stocker
Hi Yeah thats pretty much it. It does make it eaiser for people using dom in another lanugage to pick it up in php if it did conform to the standard. Expecially how we are trying to conform the functions to begin with. Instead of having append_child... why not add_child.. 'cause

[PHP-DEV] CVS Account Request: floripa

2002-05-14 Thread Antônio Carlos Venâncio Júnior
Translation of the PEAR Documentation (http://pear.php.net/manual) to Brazilian Portuguese language (pt_BR). I will commit to peardoc repository. Alexander Merz [EMAIL PROTECTED] told me to request for a cvs account, so I can commit translated files by myself. -- PHP Development Mailing

Re: [PHP-DEV] DOM XML uses non-DOM compliant calls

2002-05-14 Thread brad lafountain
--- Christian Stocker [EMAIL PROTECTED] wrote: Hi Yeah thats pretty much it. It does make it eaiser for people using dom in another lanugage to pick it up in php if it did conform to the standard. Expecially how we are trying to conform the functions to begin with. Instead of having

[PHP-DEV] Samba Bindings?

2002-05-14 Thread Lachlan Mulcahy
Hi there, I'm new to the dev list,... I dropped an email to Andrei and he suggested I post here so, here goes... I'm currently developing a set of functions at work for performing samba related operations. They act as a frontend to smbtools and parse the text output by these CLI apps. I'd

[PHP-DEV] Re: [PHP] Re: [PHP-DEV] Timeline for Apache 2 full use?

2002-05-14 Thread Rodolfo Gonzalez
On Tue, 14 May 2002, Richard Archer wrote: Aah, but by the same logic, if Apache 2.0 with PHP4 can provide the users with a faster, more stable service, it's bad *not* to use it. It's bad if the beasts are experimental. Now, I guess this is for the devel list: libmcrypt4-2.4.19-1mdk

[PHP-DEV] CVS Account Request: willylee

2002-05-14 Thread Willy Lee
develop a php application -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php