Welcome Guest, Not a member yet? Register   Sign In
DMZ 1.8.2 var_dump return all application data (database info & password)
#1

[eluser]Unknown[/eluser]
Hello,

I have just install DMZ 1.8.2 in my new installation of CodeIgniter.
Everything is ok but I have a strange think.

When I print (var_dump) the result from :

Code:
$prices = new Productsprice_model();
var_dump($prices->get());

I receive a big array with a lot of information like the translations, sessions, the database info (password,...) and the result of the query :

Here is a small part of this object :

Code:
public 'ar_cache_no_escape' =>
        array (size=0)
          empty
      public 'username' => string 'XXXXX' (length=10)
      public 'password' => string 'YYYYYY' (length=10)
      public 'hostname' => string 'localhost' (length=9)
      public 'database' => string 'jobs2young' (length=10)
      public 'dbprefix' => string '' (length=0)
      public 'char_set' => string 'utf8' (length=4)
      public 'dbcollat' => string 'utf8_general_ci' (length=15)
      public 'autoinit' => boolean true
      public 'swap_pre' => string '' (length=0)
      public 'port' => string '' (length=0)
      public 'pconnect' => boolean true
      public 'conn_id' => resource(15, mysql link persistent)
      public 'result_id' => boolean true
      public 'db_debug' => boolean true
      public 'benchmark' => float 0.00016498565673828
      public 'query_count' => int 1
      public 'bind_marker' => string '?' (length=1)
      public 'save_queries' => boolean true
      public 'queries' => &
        array (size=2)
          0 => string 'INSERT INTO `ci_sessions` (`session_id`, `ip_address`, `user_agent`, `last_activity`, `user_data`) VALUES ('ef4c8e7d68ae1749859cf60abe59b214', '127.0.0.1', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/536.29.13 (KHTML, like Gecko) Version/6.0.4 Safari/536.29.13', 1366536406, '')' (length=294)
          1 => string 'DESCRIBE `ci_products_price`' (length=28)
      public 'query_times' => &
        array (size=2)
          0 => float 0.00016498565673828
          1 => float 0.01637601852417

Have somebody any idea why ????

Thanks




Theme © iAndrew 2016 - Forum software by © MyBB