php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56490 apc_define_constants loops infinitely when supplied with a non-scalar
Submitted: 2005-08-13 17:47 UTC Modified: 2005-08-16 04:14 UTC
From: sean@php.net Assigned: rasmus (profile)
Status: Closed Package: APC (PECL)
PHP Version: 5_1 CVS-2005-08-13 (dev) OS: Linux
Private report: No CVE-ID: None
 [2005-08-13 17:47 UTC] sean@php.net
Description:
------------
When passing a non-allowed value to apc_define_constants, it seems to loop infinitely.

(APC 3.0.6)

Reproduce code:
---------------
$PHP -r "apc_define_constants('foo', array('bar' => array('break','me')));"

(hacked to remove the cli check)

Expected result:
----------------
E_WARNING about non-scalars

Actual result:
--------------
Loops forever.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-16 04:14 UTC] rasmus@php.net
Fixed in CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 01:01:28 2024 UTC