[PHP-DEV] file permissions in function copy()

2002-02-13 Thread Andrew Sitnikov
Hello php-dev, Function copy(), when create new file use 0777 permissinos instead 0666, as result with umask 022 we have new file with 0755. Any comments ? Best regards, Andrew Sitnikov e-mail : [EMAIL PROTECTED] GSM: (+372) 56491109 -- PHP Development Maili

[PHP-DEV] CVS Account Request: avaly

2002-02-13 Thread Agachi Valentin
Translating Documentation in Romanian -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Constants

2002-02-13 Thread Lars Torben Wilson
On Wed, 2002-02-13 at 17:22, Evan Nemerson wrote: > I was thinking about putting together a list of constants, their purpose, > what version of PHP they initially appeared in, etc. > > So far, I have figured out a function called "REGISTER_LONG_CONSTANT" is > used, or a constant is defined in t

[PHP-DEV] Improved array dereferencing

2002-02-13 Thread Jesse McCarthy
I posted this to the "PHP Into the Future" forum on Zend.com and no one responded, so now I'm posting it here, though I'm not sure how directly relevant it is to this list: I don't know if this has come up, but I think it would be great to have improved array dereferencing support in PHP so t

[PHP-DEV] Re: Bug #15535 Updated: Un-HTML-Entities

2002-02-13 Thread Yasuo Ohgaki
Wez Furlong wrote: > Well, I've already coded it and it's ready to commit :-) > > Should we include html_entity_decode in CVS? > It is effectively the same as the snippet below, just a little > bit more obvious that it can be done (and slightly faster). > > --Wez. Why not? +1 > > On 13/02/02,

[PHP-DEV] ZendAPI manual problem?

2002-02-13 Thread Yasuo Ohgaki
I cannot do "make test" for ZendAPI. Am I missing something? [yohgaki@dev ZendAPI]$ make test nsgmls -i lang-en -s ./phpdocxml.dcl nsgmls:./phpdocxml.dcl:179:2:E: end of document in prolog ZendAPI is small enough to do "make html", though. -- Yasuo Ohgaki -- PHP Development Mailing List

[PHP-DEV] Constants

2002-02-13 Thread Evan Nemerson
I was thinking about putting together a list of constants, their purpose, what version of PHP they initially appeared in, etc. So far, I have figured out a function called "REGISTER_LONG_CONSTANT" is used, or a constant is defined in the source with a name that has a preceeding "PHP_" (eg "PHP

[PHP-DEV] Nuking issock - PHP Streams

2002-02-13 Thread Wez Furlong
Hi All, Well, after a period of semi-absence (I've had a LOT of work on), I've managed to do some more work on PHP Streams. I've attached a diff that I would like to commit in a day-or-so - it would be great if you could look through and yell if there is any reason not to commit it, or if there

Re: [PHP-DEV] Re: Bug #15530 Updated: conent of node node correct reading new DOM value after set_content of node

2002-02-13 Thread Markus Fischer
Well, as far as I understand, the content thing is not compltely imlpemented (there's even a note about this in the source). Sadly, no time currently to fix it. - Markus On Wed, Feb 13, 2002 at 12:11:58PM -0500, Rob Richards wrote : > Thanks, but same results. > > when I put th

Re: [PHP-DEV] Re: Bug in current Object Model

2002-02-13 Thread Andi Gutmans
At 01:34 PM 2/13/2002 -0600, Jason Greene wrote: >Yes I do realize that the function would copy the value; however, I >would think the output before and after $obj->do_something would be >equal The problem I was mainly refering to is the reference count of >the properties elements. Why would it g

[PHP-DEV] Re: socket_fd_* functions in ext/sockets

2002-02-13 Thread Richard Samar
Richard Samar wrote: > > Can anyone help me out for what the socket_fd_* functions > in ext/sockets are good for and in which scenario they might > be useful? hmm obviously a wrap of the FD_* macros ...sorry to bother :-) -moh -- PHP Development Mailing List To unsubsc

Re: [PHP-DEV] Re: Bug in current Object Model

2002-02-13 Thread Jason Greene
On Wed, 2002-02-13 at 12:24, Andi Gutmans wrote: > >$obj=new test(); > > $obj == is_ref=1/refcount=1 > > >debug_zval_dump($obj); > > You are passing $obj by value. So inside the debug_zval_dump() it will be > is_ref=0/refcount=1 (it will be copied). > > > >$obj->do_something(); > > Inside d

[PHP-DEV] Re: [PHP-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_language_parser.y

2002-02-13 Thread Andi Gutmans
Can we change the commit address to [EMAIL PROTECTED]? I like to filter my mail with the Qmail Delivered-To: directive so it help if the mailing list name would be different. Andi At 07:26 PM 2/13/2002 +, Andi Gutmans wrote: >andiWed Feb 13 14:26:07 2002 EDT > > Modified files:

[PHP-DEV] socket_fd_* functions in ext/sockets

2002-02-13 Thread Richard Samar
Can anyone help me out for what the socket_fd_* functions in ext/sockets are good for and in which scenario they might be useful? thx n greetZ -moh -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Bug in current Object Model

2002-02-13 Thread Andi Gutmans
I don't think it's a bug. This weird behavior is due to the Engine 1 object model (which will be different in Engine 2). At 07:38 PM 2/12/2002 -0600, Jason Greene wrote: >Zeev, Andi > >It appears that the bug we talked about in private correspondence does >not just apply to object overloading. I

Re: [PHP-DEV] passing by reference

2002-02-13 Thread Andi Gutmans
At 07:28 PM 2/12/2002 +0100, Markus Fischer wrote: >On Tue, Feb 12, 2002 at 10:05:06AM -0500, Chad Cunningham wrote : > > 4.1.1 seems to have gotten rid of ParameterPassedByReference. What is the > > proper, backwards compatable way to handle this now? > > PZVAL_IS_REF(z) defined in zend.h Ev

Re: [PHP-DEV] passing by reference

2002-02-13 Thread Andi Gutmans
At 10:05 AM 2/12/2002 -0500, Chad Cunningham wrote: >4.1.1 seems to have gotten rid of ParameterPassedByReference. What is the >proper, backwards compatable way to handle this now? > >i.e. my code does this: > > >case 3: > if (zend_get_parameters_ex(3, &username, &password, &status) == >FAIL

[PHP-DEV] Re: Bug #15530 Updated: conent of node node correct reading new DOM value after set_content of node

2002-02-13 Thread Rob Richards
Thanks, but same results. when I put the example code up there I also was thinking who would ever need to set and then read the same information. Unfortunately our real case scenario runs into this. Just for reference: We have a complex workflow, so have no idea where we are in the workflow we

[PHP-DEV] RE: Bug #15530 Updated: conent of node node correct reading new DOM value after set_content of node

2002-02-13 Thread Joseph Tate
Ok, try the following code: function getContent ($n) { if (!($children = $n->children())) return ''; $content = ''; foreach ($children as $c) { if ($c->type == XML_TEXT_NODE) { $content .= $c->content; } } return $content; } Then use getContent($

[PHP-DEV] RE: Bug #15530 Updated: conent of node node correct reading new DOM value after set_content of node

2002-02-13 Thread Joseph Tate
You kind of have to have a custom php build anyway because DOMXML stuff isn't part of the RH php installation. I've got rpms for RH 7.2 if that will help. They don't have the get_content stuff, but I could add that to my custom patch (that fixes bug #14934) no problem. Besides, it'll be in the

Re: [PHP-DEV] Re: php globals delete

2002-02-13 Thread derick
On Wed, 13 Feb 2002, brad lafountain wrote: > Well how do i properly delete my global memory with without having > zts enabled You can do it in your MINIT/MSHUTDOWN functions. (or RINIT and RSHUTDOWN): http://www.php.net/manual/en/zend.structure.module-block.php http://www.php.net/manual/en/zen

[PHP-DEV] CVS Account Request: jtate

2002-02-13 Thread Joseph Tate
I'd like to help with the DOM-XML extension, getting it up to snuff. Filling in the holes, etc. I've already submitted one patch, and feel I can help a very strapped development team. -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: php globals delete

2002-02-13 Thread brad lafountain
Well how do i properly delete my global memory with without having zts enabled - Brad --- Yasuo Ohgaki <[EMAIL PROTECTED]> wrote: > Brad Lafountain wrote: > > Question.. > > > > why doens't the destructor get called on shutdown with the following > line... > > > > ZEND_INIT_MODULE_GLOBALS(soap

[PHP-DEV] Re: Bug #15535 Updated: Un-HTML-Entities

2002-02-13 Thread Wez Furlong
Well, I've already coded it and it's ready to commit :-) Should we include html_entity_decode in CVS? It is effectively the same as the snippet below, just a little bit more obvious that it can be done (and slightly faster). --Wez. On 13/02/02, [EMAIL PROTECTED] wrote: > ID: 15535

[PHP-DEV] Re: php globals delete

2002-02-13 Thread Yasuo Ohgaki
Brad Lafountain wrote: > Question.. > > why doens't the destructor get called on shutdown with the following line... > > ZEND_INIT_MODULE_GLOBALS(soap, php_init_globals, php_del_globals); > According to the macro definition, it does not use it unless PHP is compiled with ZTS. -- Yasuo Ohgaki

[PHP-DEV] php globals delete

2002-02-13 Thread brad lafountain
Question.. why doens't the destructor get called on shutdown with the following line... ZEND_INIT_MODULE_GLOBALS(soap, php_init_globals, php_del_globals); - Brad __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greeti

Re: [PHP-DEV] 80,000 posts

2002-02-13 Thread Andrei Zmievski
On Wed, 13 Feb 2002, Jason Greene wrote: > Wow, > > I wonder what the size of all those would be in bytes: ) 271,622,000 -Andrei "The secret of flying is to throw yourself at the ground, and miss." -- Douglas Adams -- PHP Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] 80,000 posts

2002-02-13 Thread Jason Greene
Wow, I wonder what the size of all those would be in bytes: ) -Jason On Tue, 2002-02-12 at 22:13, Andrei Zmievski wrote: > php-dev has had 80,000 posts to it. At least I hope mine is number > 80,000. > > P.S. Well, most of those were probably bug reports/closings. > > -Andrei > > -- > P

Re: [PHP-DEV] msession tech note, 'feature' (buglet), call for

2002-02-13 Thread mlwmohawk
> At 10:16 PM 2/12/2002 -0500, [EMAIL PROTECTED] wrote: >>There are a number of ways to deal with this, but creating a socket >>pool of active sockets, and have a number of threads handle the sockets >>in a classing queue fashion seems like the best way. >> >>Anyone have a better idea? > > Either

Re: [PHP-DEV] [patch] one script to handle them all

2002-02-13 Thread Lukas Schroeder
On Wed, Feb 13, 2002 at 08:13:42AM +0100, Markus Fischer wrote: > Patches should always be against latest CVS. here it is. against latest CVS. regards, -lukas Index: sapi/apache/mod_php4.c === RCS file: /repository/php4/

Re: [PHP-DEV] [patch] one script to handle them all

2002-02-13 Thread Stefan Esser
Hmm, maybe we should first hear if anyone has an argument against such an additional feature. I think its less overhead than mod_rewrite. +1 from me Stefan -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] [PATCH] Output control

2002-02-13 Thread Yasuo Ohgaki
Current output control code have some problems. This patch solves some. 1) ob_end_clean/ob_end_flush destory buffer that is not supposed to. Deleteting output compression does not make sense once output is started. (Additional checks) 2) Memory leak, crash when deleting output buffer when