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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sean@php.net
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-16 04:14 UTC] rasmus@php.net
Fixed in CVS
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 18:01:32 2025 UTC