Weird php bug? : “” == 0

Posted by shadow_of__soul | Posted in Uncategorized | Posted on 18-01-2010

0

Hi,

just happened something weird, i have a sentence like this:

if($var!=”"){

}

the thing is that the var sometimes get the value of 0, and for some reason it returned false (something that never happened to me before in 3 years programming in php). anyway i understand that can be considered as normal, but i wondering if is a bug :s (why it don’t happened before )

the solution?

if($var!==”"){

}

i hope has been useful :D

Regards,

Shadow.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Bulkloader: GetDisplayObjectLoader always return null

Posted by shadow_of__soul | Posted in Uncategorized | Posted on 09-01-2010

0

Hi,

something weird that happened to my 2 days ago, i was working in a component that load images in a slideshow gallery, and like can load images from other url’s that are not where the swf is hosted, you can’t access the content of the loader for the security policies of flash, so the only way to show the loaded images is getting the loader (and in bulkloder the Loader-get(ID).loader don’t work also).

the solution was easy, just update your version of bulkloader to the last revision where this bug has been fixed :D

just i wanted to share this tip so someone else don’t lose time searching for it :)

Regards.

Shadow.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]