[Tickets #11894] Horde_Routes: Array to string conversion

bugs at horde.org bugs at horde.org
Sat Dec 15 15:14:12 UTC 2012


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/11894
------------------------------------------------------------------------------
  Ticket             | 11894
  Created By         | remi at famillecollet.com
  Summary            | Horde_Routes: Array to string conversion
  Queue              | Components
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


remi at famillecollet.com (2012-12-15 15:14) wrote:

When running test suite:
1) Horde_Routes_GenerationTest::testUrlWithEnviron
Array to string conversion
/dev/shm/BUILDROOT/php-horde-Horde-Routes-2.0.1-1.fc17.remi.x86_64/usr/share/pear/Horde/Routes/Mapper.php:596
/dev/shm/BUILD/php-horde-Horde-Routes-2.0.1/Horde_Routes-2.0.1/test/Horde/Routes/GenerationTest.php:732
...

I know this warning is new in PHP 5.4 which is not supported, but at  
least it allow to detect an issue.

Reading the code, kargs is obviously an array, so $cacheKeyScriptName  
is going to always be set to "array" (which is the standard behavior  
in PHP 5.3, and which raise a warning in PHP >= 5.4

The proposed patch use "serialize" to transform $kargs to something  
usable as a array index.




remi at famillecollet.com (2012-12-15 15:14) uploaded: Horde_Routes-php54.patch

http://bugs.horde.org/h/services/download/?module=whups&actionID=download_file&file=Horde_Routes-php54.patch&ticket=11894&fn=%2FHorde_Routes-php54.patch





More information about the bugs mailing list