Re: [PHP4BETA] Segmentation fault - any indea?
| From: | Thies C. Arntzen | Date: | Mon, 09 Aug 1999 15:04:38 +0000 |
| Subject: | Re: [PHP4BETA] Segmentation fault - any indea? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-3237@lists.php.net to get a copy of this message | ||
should be fixed in CVS
On Mon, 9 Aug 1999, Teodor Cimpoesu wrote:
> "Thies C. Arntzen" wrote:
> >
> > hi,
> > the shm* module has not been ported yet.
> >
> > i've never used it myself - but if you send me a little test-script i
> > should be able to get it working with php4.
> >
> > regards,
> > tc
> oh, so that was it! :(
> Well I was gone for some minutes and left this opened [ u didn't notice
> :) ], but came back
> and wrote a little script, here it is:
>
> <?
> if ($argv[0] == 'delete'){
> shm_remove(777);
> echo "END";
> exit;
> }
> $shm = shm_attach(777,65535) || die('shm_error');
> #this fails(?)
> #first call should generate a warning on key(1).
> $u_array = shm_get_var($shm,1);
>
> if ( !is_array($u_array) ){
> $u_array = array("a_key" => "a_value","b_key"
> => "b_value");
> shm_put_var($shm,1,$u_array);
> echo "First call, initializing...<br>
> <a href='$PHP_SELF'> again </a>";
> } else {
> echo "Second call, reading...<br>
> a_key => ".$u_array['a_key'].", b_key =>".
> $u_array['b_key']."<br>
> Is it okay ? :) <br>
> <a href='$PHP_SELF?delete'> end </a>";
> }
>
> shm_detach($shm);
> ?>
> regards & 10x 4 help.
> --
> CIMPOESU Teodor, Web Programmer
>
> @ DIGICOM S.A. Bucharest, Romania
> @ Internet, site development
> @ teo@digiro.net,+(401)-330.47.28
>
> official home page ~ http://www.digiro.net/
> Internet web page ~ http://internet.digiro.net/
>
>
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany