|
From: <php...@li...> - 2008-03-03 18:29:24
|
Hi,
[backward incompatibility]
> I just upgraded from PHP/JavaBridge 3.x to 5.x and the following code
> stopped working:
Please see the NEWS entry for 5.0.0:
<strong>This version is no longer backward compatible with earlier versions:</strong>
[1] Note that in PHP versions <= 5.3
class Clazz { function __toString() {return "42"; } }
var_dump((int)(string)new Clazz());
works correctly but
var_dump((int)new Clazz());
does not. This means that if you want to convert an object into
a value, you must convert it into a string first.
> I also tried with:
> $upload_id = (int)$upload_response->getUploadId();
$upload_id = (int)(string)$upload_response->getUploadId();
should work. Please ask the PHP developers why the extra (string) cast is necessary...
Regards,
Jost Boekemeier
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail
|