Re: Spelling of name for Mail/mime.php?

From: Date: Mon, 19 Jan 2004 03:15:18 +0000
Subject: Re: Spelling of name for Mail/mime.php?
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-25142@lists.php.net to get a copy of this message
class names are not case-sensitive as far as the language is concerned. The only difference is that strings returned from reflection-style functions are now returned with the defining case. <?php class test {} class Test {} ?> This results in a parse error, duplicate classname <?php class test {} $a = new test; echo get_class($a); ?> prints "test" <?php class Test {} $a = new test; echo get_class($a); ?> prints "Test" - note that $a was declared as a lowercase test. Stefan Neufeind wrote:
Hi Greg, well, now that Pierre has pointed it out: The class-name inside the mime.php is even Mail_mime and not Mail_Mime. If we're thinking about PHP5 this might lead to problems since the class-names then are case- sensitive. So for PHP5 really Mail_mime and Mail_Mime (both classes, in two files) might be independent classes? The issue is that the package itself is named Mail_Mime, both with capital M's.
The files inside should reflect this. Greg

« previous php.pear.dev (#25142) next »