Edit report at http://bugs.php.net/bug.php?id=8985&edit=1
ID: 8985 Comment by: james at ihush dot com Reported by: fuf at mobil dot cz Summary: shm_put_var wont put the given var into memory Status: No Feedback Type: Bug Package: Semaphore related Operating System: linux-2.2.18 PHP Version: 4.0.4pl1 New Comment: I can provide my code, please contact me~~ Previous Comments: ------------------------------------------------------------------------ [2010-06-24 05:37:12] james at ihush dot com I had also experienced such problem in my multi-process program, i start several processes which shared a shared memory segment created by shm_* method and when i get/set them frequently, i found some value is wrong or missing, my PHP version is 5.2.11, would you please to help me to check this problem? thank you very much ~~~~ :) ------------------------------------------------------------------------ [2002-02-15 00:00:02] php-bugs at lists dot php dot net No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-01-14 12:25:59] gik at zap dot cl Hi! Forgot to explain my example :) In the Log file, "...added successfully to SHM..." means that shm_put_var() returned true. But the next time I call shm_get_var(), I get the following error: "variable key ... doesn't exist in bbb.php4 on line ..." Giancarlo. ------------------------------------------------------------------------ [2002-01-14 12:19:45] gik at zap dot cl I've been experiencing the same problem on a dual cpu server, even with PHP 4.1.1. Sometimes occurs that shm_put_var() doesn't correctly write data to SHM but returns true, and as I manage an array of online users in SHM, I have noticed that all users sometimes are dropped off. I also check semaphores before writing to SHM. 16:44:41 User aaa added successfully to SHM. (8104 bytes written) 16:45:54 User bbb added successfully to SHM. (8209 bytes written) 16:47:20 User bbb deleted successfully from SHM. (8104 bytes written) 16:47:31 User ccc added successfully to SHM. (8206 bytes written) 16:49:29 User ddd added successfully to SHM. (109 bytes written) I offer my help to debug this problem, Giancarlo Girardi ------------------------------------------------------------------------ [2002-01-14 02:24:57] lob...@php.net Have you tried this with 4.1.1? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=8985 -- Edit this bug report at http://bugs.php.net/bug.php?id=8985&edit=1