|
Web Contractors Web Developer Jobs Join Us / Log in Discussion |
Simpletest unsupported operand type error.
Submitted by rimian on Sat, 10/18/2008 - 05:00
I'm getting an "Unsupported operand types" error in Simpletest 6.x-2.4.
Unfortunately Drupal.org is offline at the moment so I can't post there.
For some reason my version of PHP won't add arrays like this:
$myarray = $array1 + $array2;
But you can use array_merge like this:
$myarray = array_merge($array1, $array2);
If you get an error about one of the arrays not being an array then you can type cast the arguments (php5) like so:
$myarray = array_merge((array) $array1, (array) $array2);
New forum topics
- Open Source Online Invoicing Software
- Professional Drupal Consulting, Design & Development Services in Australia
- New Year Speacial-Professional Website for 400$ with doamin+Host
- Ruby on Rails Oceana
- WebDev/Design/Research/Consultant - PHP/MySql, Javascript, Joomla, HTML, Flash, AJAX
- Freelance ASP.NET Developer
- System Monitoring with Nagios
- Learning Ruby? What about the RubyMentor Project?
- Need a team
- JAOO Sydney/Brisbane 2009
- Get Your Business a Website for $399 ONLY !!!
- Concrete5: Another CMS!
- Manage The Cloud with Amazon Web Services
- Crystal Reports developer needed
- web applications/ e-commerce/ web marketing


Post new comment