<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d33142127\x26blogName\x3dfishyweb\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://fishyweb.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://fishyweb.blogspot.com/\x26vt\x3d6110685601352612137', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Changes in PHP behavior, between versions! A Feature?

Scenario:
Passing of string data as result from a java class, invoked and executed by a php script via the php-java bridge
The Java class uses the "String" object to return data.


Behavior in Question:
Php4 converts and assigns the java result string to a php string type. Works beautifully as expected.

Php5 converts and assigns the java result string to a php String Object(?) instead of the expected php string type. Code Breaks.
(More Intelligent behavior?)


Solution:
Did a force string conversion of the result string from the java class, using StrVal() function of php!
All's well, return to normality!




Linux :: Development :: Tools
Sivaramasundar

You can leave your response or bookmark this post to del.icio.us by using the links below.
Comment | Bookmark | Go to end