Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • PHP error after updating my php version to 5.4.0-3

    • 0
    • 0
    • 0
    • 1
    • 0
    • 0
    • 0
    • 443
    Answer it

    Hello I'm get a strange PHP error after updating my php version to 5.4.0-3.

    I have this array:

    Array
    (
      [host] => 127.0.0.1
      [port] => 11211
    )

    When I try to access it like this I get strange warnings

    print $memcachedConfig['host'];
    print $memcachedConfig['port'];

    And this is what i'm getting output screen:-

     Warning: Illegal string offset 'host' in ....
     Warning: Illegal string offset 'port' in ...

    I really don't want to just edit my php.ini and re-set the error level.

    Thanks for any help!

 1 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: