php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57411 Incorrect locking system reported in phpinfo if semaphores are used
Submitted: 2006-12-01 11:13 UTC Modified: 2006-12-05 06:34 UTC
From: christian_boitel at yahoo dot fr Assigned:
Status: Closed Package: APC (PECL)
PHP Version: Irrelevant OS: Solaris
Private report: No CVE-ID: None
 [2006-12-01 11:13 UTC] christian_boitel at yahoo dot fr
Description:
------------
Lock system being used by APC reported by phpinfo is incorrect.

Reproduce code:
---------------
Patch of php_apc.c to be applied on version 3.108 of file:
--- php_apc.c.original  2006-12-01 17:07:14.921875000 +0100
+++ php_apc.c   2006-12-01 17:09:14.140625000 +0100
@@ -163,7 +163,7 @@
 #else
     php_info_print_table_row(2, "MMAP Support", "Disabled");
 #endif
-#if APC_SEM
+#if APC_SEM_LOCKS
     php_info_print_table_row(2, "Locking type", "IPC Semaphore");
 #elif APC_FUTEX_LOCKS
     php_info_print_table_row(2, "Locking type", "Linux Futex Locks");


Expected result:
----------------
Locking type: IPC Semaphore

Actual result:
--------------
Locking type: File Locks

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-05 06:34 UTC] gopalv82 at yahoo dot com
Thanks for the patch. Applied.

http://news.php.net/php.pecl.cvs/6731
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 08:01:32 2024 UTC