Re: problems in extension development

From: Date: Fri, 17 Feb 2012 07:59:26 +0000
Subject: Re: problems in extension development
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-316651@lists.php.net to get a copy of this message
Besides, are there some APIs I can use if I want to set&get environment variables like DOCUMENT_ROOT in my extension(similar to sapi_cgienv_get/set). Thanks! 2012/2/17 Rui Hu <tchrbupt@gmail.com> > hi, > > I just started to write a simple PHP extension "hello", but encountered > some problems. I followed tutorials step by step: > 1. ./ext_skel --extname=hello > 2. modified hello.c and php_hello.h, and wrote function hello_world() > which simply return a string "hello world". > 3. phpize > 4. ./configure ; make ; > 5. the I encountered error in make. I looked up in Makefile and found that > $(PHP_MODULE) is null, which I think is the reason. Makefile is > automatically generated by ./configure. > > What mistake did I make? How to fix it? > > Thanks! > Vic Hu > > > -- > Best regards, > > Rui Hu > > ---------------------------------------------------------------------------------------- > State Key Laboratory of Networking & Switching Technology > Beijing University of Posts and Telecommunications(BUPT) > MSN: tchrbupt@gmail.com > > ----------------------------------------------------------------------------------------- > > > -- Best regards, Rui Hu ---------------------------------------------------------------------------------------- State Key Laboratory of Networking & Switching Technology Beijing University of Posts and Telecommunications(BUPT) MSN: tchrbupt@gmail.com -----------------------------------------------------------------------------------------

« previous php.general (#316651) next »