[nanomsg] Re: The php extension for proxyio

  • From: 老栋 <yp.fangdong@xxxxxxxxx>
  • To: "Jason E. Aten" <j.e.aten@xxxxxxxxx>
  • Date: Thu, 3 Jul 2014 09:02:48 +0800

i check the rc, so that $req is ok.
you can var_dump($req)

-----------
PROXYIO
http://proxyio.org
2014-7-3 上午3:50于 "Jason E. Aten" <j.e.aten@xxxxxxxxx>写道:

> On Wed, Jul 2, 2014 at 8:07 AM, Dong Fang <yp.fangdong@xxxxxxxxx> wrote:
>
>> hi, all
>>
>> i am writing one php extension for proxyio project.
>> here is the testing code.
>> https://raw.githubusercontent.com/pipul/xio/master/binding/php/ts.php
>>
>> this line will make program coredump. if i remove this line, the program
>> work well!.
>>
>> $tmp = $req->hdr;
>>
>> can anyone help me ? i'am not good at this.
>>
>>
> Core dumps on pointer dereference usually mean that the pointer ($req) is
> null or not a real pointer. At the least, check for null-ness before using
> it.
>
>

Other related posts: