Menu

#99 class-names are stored in wrong way

open
nobody
None
5
2004-05-21
2004-05-21
No

I have tested the code below and got a strange behaviour:

class Test {
public function __construct() {
print_r(get_class($this));
}
}

$test = new Test();

// Starting apache with php5RC2 and mmcache
// 1. try:
// output: Test

// 2. try:
// output: test

It seems, that mmcache stores the class-names in
case-insensitive style, but PHP5 does it in
case-sensitive style.

Discussion

  • V@no

    V@no - 2004-07-18

    Logged In: YES
    user_id=550230

    I dont know if this was the same for me, but I had some
    problems with classes on Apache2+PHP5.0.0+MMCache 2.4.6/7
    but after recompilling PHP without --enable-zend-multibyte
    it fixed the problem...

     
  • Nobody/Anonymous

    Logged In: NO

    In php5 get_class() return all class names in lower case.
    this behavior is independent from using mmcache

     

Log in to post a comment.