Different server, different datatype with the exact same code

I’m running a code getting data from a DB server, everything is working fine locally. But when I push it online, it’s not working anymore.

I think I know where the problem comes from. Here is the data I get locally:

object(stdClass)#451 (14) {
  ["matter_created_actionstep_c"]=>
  string(1) "1"
  ["trust_receipt_sent_c"]=>
  string(1) "1"
  ["scope_complete_c"]=>
  string(1) "0"
  ["transferred_trust_to_current_c"]=>
  string(1) "0"
}

And when I push it on my server, here is the result I get:

object(stdClass)#451 (14) {
 ["matter_created_actionstep_c"]=>
  int(1)
  ["trust_receipt_sent_c"]=>
  int(1)
  ["scope_complete_c"]=>
  int(0)
  ["transferred_trust_to_current_c"]=>
  int(0)
}

Are you aware of any apache configuration that would lead to this typeset change?

The only project file that is different, is the conf file:

locally:

DB_HOST=1.1.1.1

on the server:

DB_HOST=localhost

Thanks in advance.


Source: apache

Leave a Reply