Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Bug Reports » BUG+FIX: error generated in _cm_pre_updateRecord gives 'blank' screen
Re: BUG+FIX: error generated in _cm_pre_updateRecord gives 'blank' screen [message #658 is a reply to message #657] Fri, 23 February 2007 12:12 Go to previous message
AJM is currently offline  AJM
Messages: 2371
Registered: April 2006
Location: Surrey, UK
Senior Member
Thanks for spotting that. I will include the fix in the next release.

This problem did not exist in PHP 4 as the array_merge() function would automatically cast any non-array argument to an array, but one of those dunderheads in the PHP development team decided to remove this "feature" in PHP 5. His reasoning was that if a function expects an array then giving it something which is not an array is a fault. That is the way that "proper" languages work, so PHP should be just the same.

<rant>
These ideas of purity and strictness are a real PITA. PHP used to be very forgiving by automatically changing a variable's type to suit the circumstances, but now code that worked in PHP 4 does not work in PHP 5. Is it any wonder that the take-up of PHP 5 has been so slow when there have been so many unnecessary breakages in backwards compatibility.
</rant>


 
Read Message
Read Message
Previous Topic: not able to search 'Task Id'
Next Topic: BUG. $wherearray is empty in _cm_Fileupload
Goto Forum:
  


Current Time: Fri Nov 29 00:36:48 EST 2024

Total time taken to generate the page: 0.00933 seconds