[PHP-DEV] CVS Account Request: jrieger

2003-10-10 Thread Jan Rieger
Wanna help maintaining the smarty.php.net web site -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] CVS Account Request: mose

2003-10-10 Thread mose
Senior coder in tikiwiki, wish to give an hand on use of tikiwiki for the smarty community and contribute to its development. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] CVS Account Request: marclaporte

2003-10-10 Thread Marc Laporte
help update Smarty website (see Monte) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] phprep - initial , unfinished release

2003-10-10 Thread Andrei Zmievski
On Fri, 10 Oct 2003, netcat wrote: > Hi, all. > > I've just made available first (for developers only) release of phprep > project. > home page: > http://phprep.sourceforge.net/ > download: > http://sourceforge.net/project/showfiles.php?group_id=92157 > > Everyone is encouraged to check if there

[PHP-DEV] $_SESSION questions

2003-10-10 Thread Jeremy Johnstone
I have recently found that if I don't register a session using PHP's session management code I can use the $_SESSION variable as "my own" superglobal which I can use for whatever purpose I deam fit. Here is a small code snippet to illustrate: $_SESSION = new my_custom_session_obj(); function test

[PHP-DEV] CVS Account Request: boots

2003-10-10 Thread boots
To create/maintain new tiki based web site for Smarty (Smarty maintainer Monte Ohrt suggested that those interested first apply for a CVS account) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] phprep - initial , unfinished release

2003-10-10 Thread netcat
Hi, all. I've just made available first (for developers only) release of phprep project. home page: http://phprep.sourceforge.net/ download: http://sourceforge.net/project/showfiles.php?group_id=92157 Everyone is encouraged to check if there are no license issues there. If there are, post a patc

Re: [PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Dan Cox
Wez- Wez Furlong wrote: Performance wise, its not going to make much difference, because no matter what you are doing, to dynamically resolve the value of a constant will involve hash lookups. The other alternative, and this is the official POV of the Zend guys IIRC, is that you can use eval() to

Re: [PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Wez Furlong
> >Performance wise, its not going to make much difference, > >because no matter what you are doing, to dynamically resolve > >the value of a constant will involve hash lookups. > > > >The other alternative, and this is the official POV of the > >Zend guys IIRC, is that you can use eval() to look

Re: [PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Dan Cox
Hi Wez- Wez Furlong wrote: This sounds like you're doing something wrong (no offense!). You want to access a *constant* of a descendant class, when your ancestor doesn't even know if it exists. Well, that sounds more than a little odd (backwards even). Why not just use a property with a know

Re: [PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Dan Cox
Hi Ard- Sorry, I must of misunderstood you. Yes, that would work fine. Now copy/paste the getElementName() function in the derived class to all 100's of other derived classes and wonder why you couldn't just do this with one base class function. :) Dan Cox Ard Biesheuvel wrote: This works fine

Re: [PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Dan Cox
Hi Marcus- Marcus Börger wrote: Constants are bound to the class rather then to the objects. Hence they behave pretty much like static properties or default values of declared properties and like the latter they are read only. understood. The only question here is whether we want to be able t

Re: [PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Ard Biesheuvel
This works fine for me: abstract class Base { abstract function getElementName(); function getName() { return $this->getElementName(); } } class Derived extends Base { const ElementName = 'DerivedElementName'; function getElementN

Re: [PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Dan Cox
Ard Biesheuvel wrote: How about an abstract method in the base class called getElementName(), which each child will implement to return its element name. Hi Ard- This wouldn't work because the abstract method in the base class is still running in the 'base class scope' and can't see the child'

Re: [PHP-DEV] sendmail check

2003-10-10 Thread Ilia Alshanetsky
I'll revise the patch to allow for older configurations to work. I find it somewhat strange that you do not see a problem with allowing a function not intended for command execution to act as such. For the record not only safe_mode is affected, people who rely on disable_functions INI directive

Re: [PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Marcus Börger
Hello Dan, Friday, October 10, 2003, 10:53:20 AM, you wrote: > Marcus- > Marcus Börger wrote: >> Hello Dan, >> >> >>> Currently, I don't see an easy way of accessing the constants of a child >>> class from a base class. >>> >> >> Use the child's class name: >> php -r 'class t{static functi

Re: [PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Marcus Börger
Hello Wez, Friday, October 10, 2003, 12:44:07 PM, you wrote: > This sounds like you're doing something wrong (no offense!). > You want to access a *constant* of a descendant class, when > your ancestor doesn't even know if it exists. > Well, that sounds more than a little odd (backwards even).

Re: [PHP-DEV] sendmail check

2003-10-10 Thread Sascha Schumann
I don't buy the security line you are trying to tuck onto your non-silent termination patch. If you are concerned about safe mode, fine, enable the patch for safe mode only. Having a warning in the case that the shell execution failed (it returns a non-zero error code, right?)

[PHP-DEV] sendmail check

2003-10-10 Thread Sascha Schumann
Ilia, can you please explain what purpose your patch to mail.c is serving and why it is breaking backwards compatibility? Or if the latter is not intentional, then why was the feature implemented in a such inadequate way? (Hint: Shells check PATH for executables. Your pat

[PHP-DEV] question about this list

2003-10-10 Thread Mohamed Lrhazi
I am running into a complex PHP problem, where PHP, different versions I tried, under redhat or mandrake, dies with sig fault in a way that I could not clearly reproduce... there are different components involved and I need help narrowing this down Is this the right list? Thanks alot. Mohamed

Re: [PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Ard Biesheuvel
How about an abstract method in the base class called getElementName(), which each child will implement to return its element name. -- Ard -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Wez Furlong
This sounds like you're doing something wrong (no offense!). You want to access a *constant* of a descendant class, when your ancestor doesn't even know if it exists. Well, that sounds more than a little odd (backwards even). Why not just use a property with a known name, and set the value of tha

Re: [PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Dan Cox
Marcus- Marcus Börger wrote: Hello Dan, Currently, I don't see an easy way of accessing the constants of a child class from a base class. Use the child's class name: php -r 'class t{static function f(){echo tt::c;}}class tt extends t{const c="Hello\n";} t::f();' Yes, this is possible,

Re: [PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Marcus Börger
Hello Dan, Friday, October 10, 2003, 9:10:23 AM, you wrote: > PHP5 10/10/2003 CVS. > Currently, I don't see an easy way of accessing the constants of a child > class from a base class. Use the child's class name: php -r 'class t{static function f(){echo tt::c;}}class tt extends t{const c="Hello

[PHP-DEV] Accessing child constants from base class

2003-10-10 Thread Dan Cox
PHP5 10/10/2003 CVS. Currently, I don't see an easy way of accessing the constants of a child class from a base class. Consider the following basic example: abstract class myBaseClass { function getXML() { $doc = new domDocument(); $node = $doc->createElement(child::ElementName); $doc-