[nycbug-talk] invalid type argument of '->'

Michael Hernandez mhernandez at techally.com
Tue Mar 18 16:16:59 EDT 2008


On Mar 18, 2008, at 3:36 PM, Marc Spitzer wrote:

> On Tue, Mar 18, 2008 at 2:46 PM, Michael Hernandez
> <mhernandez at techally.com> wrote:
>> I am trying to build the php5-spl port and I keep getting errors like
>> this:
>>
>> /usr/ports/devel/php5-spl/work/php-5.2.5/ext/spl/php_spl.c:61: error:
>> invalid type argument of `->'
>>
>> I looked at php_spl.c - I don't see what's wrong with it. The line  
>> is:
>>
>> spl_globals->autoload_extensions     = NULL;
>>
>>
>> Is that not valid code? Is my gcc just old? I'm running out of ideas
>> here. Any help would be appreciated.
>
> is spl_globals a pointer?  Stupid question but it is complaining that
> it can not do a pointer dereference and access structure field.
>
> marc
>
>>

To be quite honest, I'm not sure - I guess the PHP hackers might be  
too used to hacking in PHP and so their C is getting sloppy? Which  
isn't good since PHP is written in C, not PHP. :)





More information about the talk mailing list