[Typo3-dev] changed behaviour of type-conversion PHP4->PHP5?

Ries van Twisk typo3 at rvt.dds.nl
Mon Dec 5 14:56:57 CET 2005


Hey all,

I try to be constructive.....

why not change the install tool in such a write that real values are used?
one might need to create a little script to convert from string to real 
booleans though...
But all these constructs doesn't make things easer to read not faster in 
code.

just my 2 cents


>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Still little improved:
>
>  
>
>>Change to
>>
>>if ($level == 'true') {
>>    
>>
>
>if (strtolower($level) == 'true' || $level === true) {
>
>  
>
>>  $this->level = $this->get_complevel();
>>} else {
>>  $this->level = intval($level);
>>}
>>
>>    
>>
>
>Regards
>
>Elmar
>
>- --
>Climate change 2005: Mexico, Guatemala, New Orleans, Sahel, Bangladesh,
>Spain, Portugal, Austria, Swiss, France, ...
>Production of CO2 is killing people.
>Production of CO2 just for fun is killing people just for fun.
>
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.1 (GNU/Linux)
>Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
>iD8DBQFDlDO6O976RNoy/18RAvBWAJ9N6PuHY4BCwzmjKjnTpPJBNoi1LQCfYK/S
>+Me5qphQH11WTifwGOE/oQw=
>=NamO
>-----END PGP SIGNATURE-----
>_______________________________________________
>Typo3-dev mailing list
>Typo3-dev at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>  
>





More information about the TYPO3-dev mailing list