Req #14208 [Ana->Fbk]: shm_put_var problem and new shm functions
| From: | cmb@php.net | Date: | Wed, 03 Mar 2021 12:39:13 +0000 |
| Subject: | Req #14208 [Ana->Fbk]: shm_put_var problem and new shm functions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-232502@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=14208&edit=1
ID: 14208
Updated by: cmb@php.net
Reported by: duncan at emarketeers dot com
Summary: shm_put_var problem and new shm functions
-Status: Analyzed
+Status: Feedback
Type: Feature/Change Request
Package: Semaphore related
Operating System: All
PHP Version: 4.0.6
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
What is the status here? Is this still relevant for anybody? If
so, please provide a pull request[1].
[1] <https://github.com/php/php-src/pulls>
Previous Comments:
------------------------------------------------------------------------
[2020-08-28 15:34:24] sample at email dot tst
The following patch has been added/updated:
Patch Name: mulOMpUR
Revision: 1598628864
URL: https://bugs.php.net/patch-display.php?bug=14208&patch=mulOMpUR&revision=1598628864
------------------------------------------------------------------------
[2003-05-31 10:32:48] andrey@php.net
Assigning to Wez since he implemented sysvmsg. Hopefully he will review the patch ;)
------------------------------------------------------------------------
[2003-01-20 11:49:10] iliaa@php.net
Please send further patches in unified format, it makes it much easier to read :)
------------------------------------------------------------------------
[2003-01-20 10:18:06] andrey@php.net
The mail from Duncan :
It makes updates twice as fast.
My LRU code is knocking around somewhere, but I'll have to do some rummaging if you want it.
367c367,376
< php_remove_shm_data(ptr, shm_varpos);
---
> shm_var = (sysvshm_chunk*)((char*)ptr + shm_varpos);
> /* Check the new length against the old length */
> if(shm_var->length != len ) {
> /* If not equal, remove the old entry and prepare to create a new one */
> php_remove_shm_data(ptr, shm_varpos);
> } else {
> /* If equal, just copy the new data across and return */
> memcpy(&(shm_var->mem),data,len);
> return 0;
> }
------------------------------------------------------------------------
[2003-01-18 12:53:21] andrey@php.net
Where is the patch?
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=14208
--
Edit this bug report at https://bugs.php.net/bug.php?id=14208&edit=1