Re: [PHP-DEV] PHP 4.2.0RC2 -- Apache 2.0.35 APXS fix

2002-04-05 Thread Markus Fischer
On Sat, Apr 06, 2002 at 12:41:06AM -0500, Brad House wrote : > damnit .. just looked back through the postings, looks like > people have already fixed this ... sorry for the repeat ... > > damnit, now I wish I hadn't have spent the last 30 minutes > fixing this ... :) And as an advice,

Re: [PHP-DEV] Re: list() limitations

2002-04-05 Thread Yasuo Ohgaki
Philip Olson wrote: >>> $foo = array('a' => 'apple', 'b' => 'banana'); >>> >>> // Notice - Undefined offset: 1 >>> // Notice - Undefined offset: 0 >>> list($a,$b) = $foo; >> >>Isn't this line should be >> >>list($a, $b) = array_keys($foo); >>or >>list($a, $b) = array_values($foo); > > >

Re: [PHP-DEV] apache2filter efficiency

2002-04-05 Thread Thies C. Arntzen
On Fri, Apr 05, 2002 at 11:10:13PM -0800, Aaron Bannert wrote: > After working with this filter for the last few days I came to realize > that it really isn't taking advantage of the newer features of Apache 2. > In addition it seems to have a flaw that would prevent it from working > downstream f

Re: [PHP-DEV] Re: list() limitations

2002-04-05 Thread Philip Olson
> > $foo = array('a' => 'apple', 'b' => 'banana'); > > > > // Notice - Undefined offset: 1 > > // Notice - Undefined offset: 0 > > list($a,$b) = $foo; > > Isn't this line should be > > list($a, $b) = array_keys($foo); > or > list($a, $b) = array_values($foo); Sure that works. > I

[PHP-DEV] apache2filter efficiency

2002-04-05 Thread Aaron Bannert
After working with this filter for the last few days I came to realize that it really isn't taking advantage of the newer features of Apache 2. In addition it seems to have a flaw that would prevent it from working downstream from any other content-generation filter (imagine, for example, a mod_in

[PHP-DEV] Re: list() limitations

2002-04-05 Thread Yasuo Ohgaki
Philip Olson wrote: > Hello, the following behavior seems odd: > > $foo = array('a' => 'apple', 'b' => 'banana'); > > // Notice - Undefined offset: 1 > // Notice - Undefined offset: 0 > list($a,$b) = $foo; Isn't this line should be list($a, $b) = array_keys($foo); or list($a, $b)

[PHP-DEV] list() limitations

2002-04-05 Thread Philip Olson
Hello, the following behavior seems odd: $foo = array('a' => 'apple', 'b' => 'banana'); // Notice - Undefined offset: 1 // Notice - Undefined offset: 0 list($a,$b) = $foo; // This of course works as expected while(list(,$ab) = each($foo)) { print $ab; } I recently docu

[PHP-DEV] Sockets Question

2002-04-05 Thread Eric Liedtke
I'm new in town here, so to speak, so I'm not sure about proper protocol here, but I found,what I feel is a problem in the socket extension code. Specifically in the socket_bind function. I was working with a friends code and it was trying to bind to port 80, however when I would check with socks

Re: [PHP-DEV] PHP 4.2.0RC2 -- Apache 2.0.35 APXS fix

2002-04-05 Thread Brad House
damnit .. just looked back through the postings, looks like people have already fixed this ... sorry for the repeat ... damnit, now I wish I hadn't have spent the last 30 minutes fixing this ... -Brad Brad House wrote: > This file replacement fixes compilation issues, and tests fine. > (sorry,

[PHP-DEV] PHP 4.2.0RC2 -- Apache 2.0.35 APXS fix

2002-04-05 Thread Brad House
This file replacement fixes compilation issues, and tests fine. (sorry, got too lazy to make a diff, hell, it's almost 1am) ... just replace sapi/apache2filter/sapi_apache2.c with that attached file, and --with-apxs2 will compile fine! sorry if someone else has already done this. -

Re: [PHP-DEV] apache2filter and apache2.0.35-dev, query_string vars missing

2002-04-05 Thread Jim Jagielski
Aaron Bannert wrote: > > I've been trying to track down a bug in the apache2filter (used with > Apache 2.0.35-dev) where query arguments from a GET request are not > being interpolated into the php script output. Normal variables appear > to work just fine. When I trace down to the actual variabl

Re: [PHP-DEV] Make mbstring a standard module

2002-04-05 Thread Yasuo Ohgaki
Stig S. Bakken wrote: > On Sat, 2002-04-06 at 03:00, Yasuo Ohgaki wrote: > >>Hi, >> >>Any comment for making mbstring a standard module in HEAD? >> >>Some user ask me if it's possible make it standard in 4.2.0, >>any comments? > > > If it's stable, I don't see why not. It's Derick's call thoug

[PHP-DEV] apache2filter and apache2.0.35-dev, query_string vars missing

2002-04-05 Thread Aaron Bannert
I've been trying to track down a bug in the apache2filter (used with Apache 2.0.35-dev) where query arguments from a GET request are not being interpolated into the php script output. Normal variables appear to work just fine. When I trace down to the actual variable value lookup and string concat

Re: [PHP-DEV] __CLASS__ patch - use $__THIS__ or class_get_called_name()?

2002-04-05 Thread Alan Knowles
Zeev Suraski wrote: > This should really be implemented 100% in compile time, if you touch > zend_execute.c, BUZZ :) > Anyway, incidentally, Jani implemented this very patch a few days > ago. We'll probably import it within a couple of days after we verify > that it doesn't cause any gotcha's

Re: [PHP-DEV] Make mbstring a standard module

2002-04-05 Thread Stig S. Bakken
On Sat, 2002-04-06 at 03:00, Yasuo Ohgaki wrote: > Hi, > > Any comment for making mbstring a standard module in HEAD? > > Some user ask me if it's possible make it standard in 4.2.0, > any comments? If it's stable, I don't see why not. It's Derick's call though. - Stig -- PHP Development

[PHP-DEV] Re: Make mbstring a standard module

2002-04-05 Thread Yasuo Ohgaki
I mean standard module enabled by default, like xml, session. Not put it in standar mdoule. Yasuo Ohgaki wrote: > Hi, > > Any comment for making mbstring a standard module in HEAD? > > Some user ask me if it's possible make it standard in 4.2.0, > any comments? > > -- > Yasuo Ohgaki > --

[PHP-DEV] Make mbstring a standard module

2002-04-05 Thread Yasuo Ohgaki
Hi, Any comment for making mbstring a standard module in HEAD? Some user ask me if it's possible make it standard in 4.2.0, any comments? -- Yasuo Ohgaki -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: array_splice() BUG or Future ?

2002-04-05 Thread Yasuo Ohgaki
Kachalov Anton wrote: > I found, that HashTable->arBuckets[*] contained field nKeyLength which > equal to zero for all elements and condition: > > vv > if (p->nKeyLength) > zend_hash_update(out_hash, p->arKey, p->nKeyLength, &entry, > sizeof(zval *), NULL); > ^

[PHP-DEV] Re: aggergate vs MI

2002-04-05 Thread Yasuo Ohgaki
Brad Lafountain wrote: > I keep on hearing that "we" are totally against MI but "we" want the aggergate > function. > > Can someone PLEASE explain the reasoning behind such a decision? > > I can't think of one example when aggergate would be better than using MI. Aggreation works now. Multipl

Re: [PHP-DEV] aggergate vs MI

2002-04-05 Thread Zeev Suraski
There wasn't any decision made, but someone went forward and implemented aggregation :) At 01:59 AM 4/6/2002, brad lafountain wrote: >I keep on hearing that "we" are totally against MI but "we" want the aggergate >function. > > Can someone PLEASE explain the reasoning behind such a decision? >

[PHP-DEV] aggergate vs MI

2002-04-05 Thread brad lafountain
I keep on hearing that "we" are totally against MI but "we" want the aggergate function. Can someone PLEASE explain the reasoning behind such a decision? I can't think of one example when aggergate would be better than using MI. - Brad __ Do Yo

Re: [PHP-DEV] proposed domxml funciton name changes:

2002-04-05 Thread 'Ricky' S Dhatt
I think "consistency" depends on your point of view. I'm guessing the current function names are based off the W3C DOM Spec: insertBefore: http://www.w3.org/TR/2002/WD-DOM-Level-3-Core-20020114/core.html#ID-952280727 appendChild: http://www.w3.org/TR/2002/WD-DOM-Level-3-Core-20020114/core.html#

Re: [PHP-DEV] sapi_spache2.c + 4.2.0

2002-04-05 Thread Sterling Hughes
> httpd-2.0 folks are pushing for GA, in order for apache2filter to compile > revisionn 1.63 of sapi/apache2filter/sapi_apache2.c needs to be included > in 4.2.0 (or next RC, whichever comes first). can somebody merge 1.63 > changes into the 4.2.0 branch? > Done, re-checkout this file in th

[PHP-DEV] proposed domxml funciton name changes:

2002-04-05 Thread Joseph Tate
I propose the following function name changes for clarity and consistency: Rename: domxml_node_insert_before -> domxml_node_insert_node domxml_node_append_child -> domxml_node_append_node Remove: alias to unlink (in favor of the more consistent unlink_node) domxml_node_new_child() (in favor of

[PHP-DEV] sapi_spache2.c + 4.2.0

2002-04-05 Thread Doug MacEachern
httpd-2.0 folks are pushing for GA, in order for apache2filter to compile revisionn 1.63 of sapi/apache2filter/sapi_apache2.c needs to be included in 4.2.0 (or next RC, whichever comes first). can somebody merge 1.63 changes into the 4.2.0 branch? -- PHP Development Mailing List

Re: [PHP-DEV] Re-entrant PHP

2002-04-05 Thread Daniel Lorch
Hi, > I mostly don't keep up with the bulk of the PHP threads; however, I > did a pretty thorough scan of them to find information about re-entrancy > and didn't find anything to answer my question. [..] http://www.zend.com/ http://www.php-accelerator.co.uk/ http://apc.communityconnect.com/ Dan

[PHP-DEV] Re-entrant PHP

2002-04-05 Thread Robert Cummings
I mostly don't keep up with the bulk of the PHP threads; however, I did a pretty thorough scan of them to find information about re-entrancy and didn't find anything to answer my question. So here goes... I was wondering if there were any plans to make php_mod re-entrant in any way or if there we

[PHP-DEV] Re: aggregate() und overload()

2002-04-05 Thread Andrei Zmievski
> To resolve the serialization issue, I don't have any big problems with > removing the finer-grained aggregation methods in favor of a single > predictable one. > > Suggestion for new implementation: > > * Don't create temporary class entries, proxy all calls through > PHP's object overloadin

[PHP-DEV] Re: aggregate() und overload()

2002-04-05 Thread Andrei Zmievski
Kristian wrote: > If overload() allows for __get_x(), though, this is bad design. > The reason for this is that we get namespace pollution and, > again (*), automatically called callback functions with a > variable name. There will interoperate badly with inheritance, > with dynamically created, u

Re: [PHP-DEV] Process/Thread question

2002-04-05 Thread Wez Furlong
If you are running as a cgi or cli, take a look at the pcntl extension. If you are running under apache, you must use heavy-weight "threading" by running an external/separate process and communicating with some IPC mechanism. The best solution depends on what exactly you want to do and the enviro

[PHP-DEV] RE: [PHP-CVS] cvs: php4 /ext/domxml php_domxml.c

2002-04-05 Thread derick
On Fri, 5 Apr 2002, Joseph Tate wrote: > Any objections to merging this into 4.2.0? Not from me, go ahead. Derick > > > -Original Message- > > From: Joseph Tate [mailto:[EMAIL PROTECTED]] > > Sent: Friday, April 05, 2002 1:18 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP-CVS] cvs: ph

[PHP-DEV] RE: [PHP-CVS] cvs: php4 /ext/domxml php_domxml.c

2002-04-05 Thread Joseph Tate
Any objections to merging this into 4.2.0? > -Original Message- > From: Joseph Tate [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 05, 2002 1:18 PM > To: [EMAIL PROTECTED] > Subject: [PHP-CVS] cvs: php4 /ext/domxml php_domxml.c > > > jtate Fri Apr 5 13:18:25 2002 EDT > >

Re: [PHP-DEV] Re: aggregate() und overload()

2002-04-05 Thread Shane Caraveo
> I don't want to have overload and aggregate lingering as experimental > features. If people have objections, bring them on so we can talk. I also don't want to see the issue linger, there is capability here that I am already taking advantage of, the sooner it gets settled the better. Per qu

Re: [PHP-DEV] Process/Thread question

2002-04-05 Thread Eric Liedtke
Daniel Lorch wrote: > Hi, > > > Eric Liedtke <[EMAIL PROTECTED]> > > [..] However, I am a little in the dark on what my options > > are for spawning off a new process/thread that will continue working in > > the background so the exported function can return in the script and go > > on it's mer

Re: [PHP-DEV] Process/Thread question

2002-04-05 Thread Daniel Lorch
Hi, > Eric Liedtke <[EMAIL PROTECTED]> > [..] However, I am a little in the dark on what my options > are for spawning off a new process/thread that will continue working in > the background so the exported function can return in the script and go > on it's merry way. I'm hoping a more experienc

[PHP-DEV] Process/Thread question

2002-04-05 Thread Eric Liedtke
Hello, I'm about 1 week past the reading of the php extensions section of the manual and have been working on some ext stuff and had an implementation type question. I did read the fairly recent thread on threading support in php.Which I believe I grokked, however does php being non-reentrant mea

Re: [PHP-DEV] separator constant

2002-04-05 Thread Andrei Zmievski
On Fri, 05 Apr 2002, Sander Roobol wrote: > Come on, Andrei. "Use the source, Luke!" > Anyway, according to NEWS, it was added in 4.0.6 Paint me lazy today. -Andrei "This isn't right. This isn't even wrong." -- Wolfgang Pauli -- PHP Development Mailing List To

RE: [PHP-DEV] separator constant

2002-04-05 Thread Richard Heyes
> On Fri, 05 Apr 2002, Richard Heyes wrote: > > > Do we have a constant containing path separator for the > platform PHP is > > > running on? By that I mean REGISTER'ed constant available to PHP > > > scripts. > > > > DIRECTORY_SEPARATOR ?? > > And since what version is it available? 4.06 acco

Re: [PHP-DEV] separator constant

2002-04-05 Thread Sander Roobol
On 2002.04.05 18:29 Andrei Zmievski wrote: > On Fri, 05 Apr 2002, Richard Heyes wrote: > > > Do we have a constant containing path separator for the platform > PHP is > > > running on? By that I mean REGISTER'ed constant available to PHP > > > scripts. > > > > DIRECTORY_SEPARATOR ?? > > And since

[PHP-DEV] Re: array_splice() BUG or Future ?

2002-04-05 Thread Kachalov Anton
Kachalov Anton wrote: > I found, that HashTable->arBuckets[*] contained field nKeyLength which > equal to zero for all elements and condition: > > vv > if (p->nKeyLength) > zend_hash_update(out_hash, p->arKey, p->nKeyLength, &entry, > sizeof(zval *), NULL); > ^

Re: [PHP-DEV] separator constant

2002-04-05 Thread Andrei Zmievski
On Fri, 05 Apr 2002, Richard Heyes wrote: > > Do we have a constant containing path separator for the platform PHP is > > running on? By that I mean REGISTER'ed constant available to PHP > > scripts. > > DIRECTORY_SEPARATOR ?? And since what version is it available? -Andrei * If it ain't broken

[PHP-DEV] Re: array_splice() BUG or Future ?

2002-04-05 Thread Kachalov Anton
Kachalov Anton wrote: > I found, that HashTable->arBuckets[*] contained field nKeyLength which > equal to zero for all elements and condition: > > vv > if (p->nKeyLength) > zend_hash_update(out_hash, p->arKey, p->nKeyLength, &entry, > sizeof(zval *), NULL); > ^

[PHP-DEV] classes, instances & objects in ZE2

2002-04-05 Thread Marcus Börger
Since there is a lot of discussion going on, i had some thoughts. Clearing some terms before: class = template for objects/instances   a class holds a list of methods and knows about its parents   a class can have static members/methods which can be used without   creating an object/instance inte

RE: [PHP-DEV] separator constant

2002-04-05 Thread Richard Heyes
> Do we have a constant containing path separator for the platform PHP is > running on? By that I mean REGISTER'ed constant available to PHP > scripts. DIRECTORY_SEPARATOR ?? -- Richard Heyes -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub

[PHP-DEV] separator constant

2002-04-05 Thread Andrei Zmievski
Do we have a constant containing path separator for the platform PHP is running on? By that I mean REGISTER'ed constant available to PHP scripts. -Andrei * Black holes are where God divided by zero. * -- PHP Development Mailing List To unsubscribe, visit: http://www.php.ne

Re: [PHP-DEV] specifying compression level to zlib.output_compression

2002-04-05 Thread Zeev Suraski
Ones that have PHPAPI in front of them :) Zeev At 02:25 PM 4/5/2002, Derick Rethans wrote: >On Fri, 5 Apr 2002, Zeev Suraski wrote: > > > Any particular reason not to just change the signature of > > php_deflate_string()? Do you think anything else uses this function? I > > doubt it, especiall

Re: [PHP-DEV] specifying compression level to zlib.output_compression

2002-04-05 Thread Derick Rethans
On Fri, 5 Apr 2002, Zeev Suraski wrote: > Any particular reason not to just change the signature of > php_deflate_string()? Do you think anything else uses this function? I > doubt it, especially considering its not marked as an API function... Which functions are marked as an API function t

Re: [PHP-DEV] specifying compression level tozlib.output_compression

2002-04-05 Thread Stig S. Bakken
No reason that I can think of. Changing the signature is fine by me. - Stig On Fri, 2002-04-05 at 11:02, Zeev Suraski wrote: > Any particular reason not to just change the signature of > php_deflate_string()? Do you think anything else uses this function? I > doubt it, especially consideri

Re: [PHP-DEV] aggregate() und overload()

2002-04-05 Thread Kristian Köhntopp
Kristian Köhntopp wrote: > In fact, setters, getters and wrappers provide a great > policy-agnostic mechanism to introduce policies of the > implementors choosing. A final note: Sebastian told me that in ZE 2, constructors and destructors have a fixed name like __construct() and __destruct(). If

Re: [PHP-DEV] __CLASS__ patch - returns called class

2002-04-05 Thread Zeev Suraski
This should really be implemented 100% in compile time, if you touch zend_execute.c, BUZZ :) Anyway, incidentally, Jani implemented this very patch a few days ago. We'll probably import it within a couple of days after we verify that it doesn't cause any gotcha's... Zeev At 12:34 PM 4/5/200

Re: [PHP-DEV] aggregate() und overload()

2002-04-05 Thread Kristian Köhntopp
"Stig S. Bakken" wrote: > Well, aggregate and MI are for solving different > problems, basically aggregate is for customizing > objects at runtime, while MI is done at compile time. You are right, these are different. I had a longer mail on types and classes, and how type == class is not true

Re: [PHP-DEV] Re: aggregate() und overload()

2002-04-05 Thread Zeev Suraski
I think that the key problems are: (a) It's unclear if the current behavior is the 'right thing' to do, as demonstrated by Kristian and yourself... (b) I personally think that it pretty much set the final decision on MI (as in, there won't be MI), because having both aggregation and MI in a lan

Re: [PHP-DEV] __CLASS__ patch - returns called class

2002-04-05 Thread Alan Knowles
Any chance of sneeking this one in :) - patch attached usage: test(); ?> prints testclass2 testclass2 extremely usefull for building mulitiple extendable constructors. regards alan diff -b -B -r -u php-4.2.0RC2/Zend/zend_compile.h ALAN_Zend/zend_compile.h --- php-4.2.0RC2/Zend/zend_compile

Re: [PHP-DEV] Re: aggregate() und overload()

2002-04-05 Thread Stig S. Bakken
On Fri, 2002-04-05 at 11:05, Hartmut Holzgraefe wrote: > Yasuo Ohgaki wrote: > > --disable-experimental-aggregate and > > --disable-experimental-overload? > > > > Just in case we really want to make it optional and have new way > > for overloading/multiple inheritance. > > We can document these f

Re: [PHP-DEV] specifying compression level to zlib.output_compression

2002-04-05 Thread Zeev Suraski
Any particular reason not to just change the signature of php_deflate_string()? Do you think anything else uses this function? I doubt it, especially considering its not marked as an API function... Otherwise, it sounds good... Zeev At 11:58 AM 4/5/2002, Stig S. Bakken wrote: >Hi, > >I need

Re: [PHP-DEV] Re: aggregate() und overload()

2002-04-05 Thread Hartmut Holzgraefe
Yasuo Ohgaki wrote: > --disable-experimental-aggregate and > --disable-experimental-overload? > > Just in case we really want to make it optional and have new way > for overloading/multiple inheritance. > We can document these features as EXPETIMENTAL as long as we want, > right? which brings us

[PHP-DEV] specifying compression level to zlib.output_compression

2002-04-05 Thread Stig S. Bakken
Hi, I need to be able to specify the compression level in zlib.output_handler. I was planning to implement it like this: * add php_deflate_string2 (or php_deflate_string_ex) that lets you specify compression level, move the code from php_deflate_string into php_deflate_string2 and make php_defl

Re: [PHP-DEV] Re: aggregate() und overload()

2002-04-05 Thread Zeev Suraski
I agree with Yasuo - these functions put a de-facto functionality standard in a highly debated topic that has not yet reached consensus - the least we could do is point out to people that it may very well change in the future... Zeev At 04:40 AM 4/5/2002, Yasuo Ohgaki wrote: >--disable-experim

Re: [PHP-DEV] aggregate() und overload()

2002-04-05 Thread Zeev Suraski
At 10:05 AM 4/5/2002, Stig S. Bakken wrote: > > Recommendation: > > > > If overload() indeed supports variably named callback functions > > such as __get_x(), support for this should be removed in order > > to avoid a number of possible inconsistencies and namespace > > pollution. > >I don't parti