|
From: Prometheus P. <pro...@ho...> - 2006-05-11 08:25:23
|
<html><div style='background-color:'><DIV class=RTE><A href="mailto:hiho@ll">hiho@ll</A></DIV> <DIV class=RTE> </DIV> <DIV class=RTE>i'm just working on a patch, which i would need for caching CLI scripts on linux (so i use shmget,...)</DIV> <DIV class=RTE>the problem is that under CLI nothing get's cached</DIV> <DIV class=RTE>for apache it seems to work</DIV> <DIV class=RTE> </DIV> <DIV class=RTE>what i did:</DIV> <DIV class=RTE>i changed the shared memory to NOT remove it after exit from CLI (seems to work)</DIV> <DIV class=RTE>and removed the memset(); which set's the shared memory to 0 (i moved this to mm.c to initialize it if the shared mem is created first time)</DIV> <DIV class=RTE> </DIV> <DIV class=RTE>any suggestion would be greate, for help with this</DIV> <DIV class=RTE> </DIV> <DIV class=RTE>what i know is that the shared memory is working (it doesn't get removed and i have no segmentation fault if only used in cli)</DIV> <DIV class=RTE>i get a segfault (don't really know why cause it's a bit hard to debug, cause of my developing environment (no gdb,...)) if e.g. execute a cli script, and then run a apache script (apache gets segfault) OR if i execute a apache script and then run a cli script (CLI creates segfault)</DIV> <DIV class=RTE>only running CLI scripts i get NO segfault BUT nothing gets cached</DIV> <DIV class=RTE> </DIV> <DIV class=RTE>for my productive environment i don't need to mix apache and CLI, so i'm not sure if i should be interested in the segfault (if i had, i could create 2 different shared memories depending on environment, but for now i need to get it work and this segfault is a "special" case)</DIV> <DIV class=RTE> </DIV> <DIV class=RTE>so my question:</DIV> <DIV class=RTE>cause i'm not the best php extension hacker, WHAT makes my "patch" NOT working?</DIV> <DIV class=RTE>another question would be:</DIV> <DIV class=RTE>which code, creates a cache entry? and why there is no script cached in CLI?</DIV> <DIV class=RTE>i mean, if i change the shared memory so it doesn't get deleted, and start a test script, NO script is cached</DIV> <DIV class=RTE>why?</DIV> <DIV class=RTE>i know that you (eac developers) would need much more info on this (but i think i don't have)</DIV> <DIV class=RTE>so i don't want a solution from you</DIV> <DIV class=RTE>what i would need is a hint and maybe a little description, what's the problem (what the problem could be) with CLI, cause i'm sure you agonized much more on this topic</DIV> <DIV class=RTE> </DIV> <DIV class=RTE>any hint would be great!!</DIV> <DIV class=RTE>thx!!!</DIV></div></html> |