Re: [PHP4BETA] access to $this->myvar from C
| From: | Andrei Zmievski | Date: | Wed, 02 Feb 2000 14:21:03 +0000 |
| Subject: | Re: [PHP4BETA] access to $this->myvar from C | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9670@lists.php.net to get a copy of this message | ||
On Tue, 01 Feb 2000, php@home.uh.nu wrote:
> I'm using add_property_bool() and if I use HASH_TO(*myobj) as the first parameter to
> it, I still get the warning listed above. If I remove HASH_TO() around it, gcc doesn't
> complain, but I get a ton of php errors in the apache error_log file.
>
> [Tue Feb 1 18:58:11 2000] Script: '/usr/www/site/htdocs/rc/php/walttest3.php'
> ---------------------------------------
> zend_execute_API.c(209) : Block 0x0825BB88 status:
> Beginning: Overrun (magic=0x08268F1C, expected=0x7312F8DC)
> End: Unknown
> ---------------------------------------
> ./zend_execute.c(1533) : Freeing 0x0826A444 (12 bytes),
> script=/usr/www/site/htdocs/rc/php/walttest3.php
>
> I dunno what to do, short of sending you my source and Makefile.
Send me the relevant function source.
> Also another odd thing is, My function definition is wrapper with the C macro
> PHP_FUNCTION(rcdocstransaction) in my .h file.
> gcc seems to be able to expand that macro ok in my .h file, but somehow doesn't do it
> in the .c file. So I get a compile error, saying it can't find ht, or return_value,
> since it didn't get expanded. ugh. This has been a pain, and have been working hard
> getting
> nowhere :(
Do you incluide "php.h" in your .c file?
> So I just looked at the gcc preparsed code for PHP_FUNCTION(rcdocstransaction) and
> copied and pasted that as my function definition in the .c file. I don't know why gcc
> can't expand it in the .c, when it just expanded it in my header file. ugh.
-Andrei
"The time from now until the completion
of the project tends to become constant." -- Douglas Hartree