Re: [PHP-DEV] Moderate PHP-DEV
I propose a rename to php.c-internals.dev This leaves no confusion, it is about developing in C and C++ the language of PHP. I think restricting to those with cvs accounts is not the best solution. It excludes first-time users who have a useful patch from posting a message. Regards, Greg -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] nested namespace
Hi, I'm wondering if a note of clarification could be added to ZEND_CHANGES. The sentences: A namespace's name may contain colons to denote sub-namespaces. This is pure syntactic sugar, the Zend Engine will not see, for instance, the namespaces Package, Package:Subpackage and Package:Subpackage:Subsubpackage as related. will possibly be clearer if modified like: A namespace's name may contain SINGLE colons (:) to denote sub-namespaces. This is pure syntactic sugar, the Zend Engine will not see, for instance, the namespaces Package, Package:Subpackage and Package:Subpackage:Subsubpackage as related. DOUBLE colons are used to distinguish between nested namespaces as in Package::Subpackage. A namespace identifier may not begin with a colon. namespace Package { const one = 1; namespace SubPackage { const one = 'one'; } } namespace Package:Subpackage { const one = 'einz'; } echo Package::one; // 1 echo Package::Subpackage::one; // one echo Package:Subpackage::one // einz This is assuming I understand namespaces. Modify as needed. Regards, Greg -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] nested namespace
Derick Rethans wrote: On Fri, 7 Mar 2003, Greg Beaver wrote: namespace Package { const one = 1; namespace SubPackage { const one = 'one'; } } You can not nest namespaces, so this wont work. Derick OK, makes sense. Adding this sentence would clear up a great deal of confusion. Regards, Greg -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] tokenizer and ZE2
Hi, are there any plans to update the tokenizer extension to recognize new ZE2 tokens T_ABSTRACT/T_PRIVATE/etc.? This will be very handy for making phpDocumentor PHP 5-ready. Initial investigation suggests all that is needed is to add a few lines like: REGISTER_LONG_CONSTANT(T_ABSTRACT, T_ABSTRACT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT(T_PRIVATE, T_PRIVATE, CONST_CS | CONST_PERSISTENT); etc. and update token_name() Greg -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] CVS Account Request: cellog
help develop smarty template engine, help develop pear script for windows/linux to get it working properly to install phpDocumentor -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] can't get wincvs to ask for login
Hi, I'm trying to commit some changes, and can't get wincvs to log me in or even to request a password with pserver. I've changed the username from cvsread to cellog. Anyone with wincvs experience know how to make the stupid thing work? Greg -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] can't get wincvs to ask for login
Hi Andrey, Tortoisecvs is much better than wincvs, thank you. The only other problem I have is that cvs says I don't have karma to commit things in smarty. I assume this is because I have a new account, but if I should have enough karma to commit, I may have configured something wrong (although there doesn't appear to be anything to configure in tortoise). Otherwise, I need more karma :) Thanks, Greg - Original Message - From: Andrey Hristov [EMAIL PROTECTED] To: Greg Beaver [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, February 03, 2003 10:32 AM Subject: Re: [PHP-DEV] can't get wincvs to ask for login Try out : http://www.tortoisecvs.org/ This is shell extension to explorer.exe .Everything is done with the right button of the mouse wherever you are (except Java programs). On the same page there is project for Subversion shell of the same type. Andrey - Original Message - From: Greg Beaver [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 03, 2003 5:27 PM Subject: [PHP-DEV] can't get wincvs to ask for login Hi, I'm trying to commit some changes, and can't get wincvs to log me in or even to request a password with pserver. I've changed the username from cvsread to cellog. Anyone with wincvs experience know how to make the stupid thing work? Greg -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] can't get wincvs to ask for login
Hi, I manually modified the Root file in each dir to have [EMAIL PROTECTED] instead of cvsread. The problem was karma, everything should be fixed now. Thanks, Greg - Original Message - From: Andrey Hristov [EMAIL PROTECTED] To: Greg Beaver [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, February 03, 2003 11:16 AM Subject: Re: [PHP-DEV] can't get wincvs to ask for login Did you checked out from smarty with your new account or with anonymous ? Andrey - Original Message - From: Greg Beaver [EMAIL PROTECTED] To: Andrey Hristov [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, February 03, 2003 6:42 PM Subject: Re: [PHP-DEV] can't get wincvs to ask for login Hi Andrey, Tortoisecvs is much better than wincvs, thank you. The only other problem I have is that cvs says I don't have karma to commit things in smarty. I assume this is because I have a new account, but if I should have enough karma to commit, I may have configured something wrong (although there doesn't appear to be anything to configure in tortoise). Otherwise, I need more karma :) Thanks, Greg - Original Message - From: Andrey Hristov [EMAIL PROTECTED] To: Greg Beaver [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, February 03, 2003 10:32 AM Subject: Re: [PHP-DEV] can't get wincvs to ask for login Try out : http://www.tortoisecvs.org/ This is shell extension to explorer.exe .Everything is done with the right button of the mouse wherever you are (except Java programs). On the same page there is project for Subversion shell of the same type. Andrey - Original Message - From: Greg Beaver [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 03, 2003 5:27 PM Subject: [PHP-DEV] can't get wincvs to ask for login Hi, I'm trying to commit some changes, and can't get wincvs to log me in or even to request a password with pserver. I've changed the username from cvsread to cellog. Anyone with wincvs experience know how to make the stupid thing work? Greg -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: Memory allocation problems
phpDocumentor (http://www.phpdoc.org) has had problems with this as well. PHP often doesn't give a fatal error, but instead segfaults. As of php 4.3.0, we aren't seeing any crashes, but haven't done extensive testing on the cvs, as we are not yet near a full release. Greg Edin Kadribasic [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a script that allocates a lot of memory (huge associative arrays). The problem is that this scripts bails out with fatal error (emalloc unable to allocate 44 bytes) when I hit the limit of physical ram in the machine. Swap never gets used. The machine has 1 GB of ram and 2 GB of swap space. Has anyone seen something like this before? Are there any limitations in the PHP memory allocation code that would prevent it from being able to use more memory. Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: aggregation stability
As a further note, it appears that the issue may involve the deaggregate() function. When used as deaggregate($this), it seems to cause a crash. This is the only link to crashing I've found. If I can isolate it, I'll post a bug to the tracker. Greg Greg Beaver [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, How stable is aggregation considered to be for PHP 4.3.0 release? I've been getting crashes with apache 1.3.27/php 4.3.0/Win98SE in certain cases when calling a overriding method of an aggregated class. class A { function display() { } } class B extends A { function display() { } } class D { function test() { $this-display(); } } class C { function aggtest() { aggregate($this,'B'); aggregate($this,'D'); $this-test(); } } The code above works on my system, and demonstrates the general principle that I'm using. In some cases, just adding a flush();exit; causes an apache crash. In others, adding a call to a function crashes things. There is absolutely nothing consistent. I would like to attach a sample script that causes a crash, but I can't find anything smaller than the 25 files I have which will cause one. Has anyone else experienced this bizarre behavior? What can I do to find the bug or help others find it? I don't even know if it has anything to do with aggregation. The only consistency is that when I call an aggregated function from another class's aggregated function after deaggregating and then re-aggregating, it seems to get unstable. I can't find anything else that when I add it in causes a crash, and stops when I take it out. Thanks, Greg -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] aggregation stability
Hi, How stable is aggregation considered to be for PHP 4.3.0 release? I've been getting crashes with apache 1.3.27/php 4.3.0/Win98SE in certain cases when calling a overriding method of an aggregated class. class A { function display() { } } class B extends A { function display() { } } class D { function test() { $this-display(); } } class C { function aggtest() { aggregate($this,'B'); aggregate($this,'D'); $this-test(); } } The code above works on my system, and demonstrates the general principle that I'm using. In some cases, just adding a flush();exit; causes an apache crash. In others, adding a call to a function crashes things. There is absolutely nothing consistent. I would like to attach a sample script that causes a crash, but I can't find anything smaller than the 25 files I have which will cause one. Has anyone else experienced this bizarre behavior? What can I do to find the bug or help others find it? I don't even know if it has anything to do with aggregation. The only consistency is that when I call an aggregated function from another class's aggregated function after deaggregating and then re-aggregating, it seems to get unstable. I can't find anything else that when I add it in causes a crash, and stops when I take it out. Thanks, Greg -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php