| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2004-03-16 16:32 UTC] iliaa@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 12:00:01 2025 UTC | 
Description: ------------ Using MipsPro CC for compling php produces this kind of error. cc-1133 cc: ERROR File = /mnt/MIPS/php5-200403131830/ext/simplexml/simplexml.c, Line = 1282 Expression must be a modifiable lvalue. (php_libxml_node_object *)sxe->document = NULL; <citat> * gcc allows the use of casts as lvalues. For example: void *foo; (char*)foo += 5; When using MIPSpro compilers you cannot assign to casts: void *foo; foo = (char*)foo + 5; </citat> So ((php_libxml_node_object *)(sxe))->document or php_libxml_node_object * sxe_foobar = sxe; sxe_foobar->document = NULL; must be using for a proper cast. Btw. the changelog for the upcomming GCC 3.4 mentioned this as deprecated. regards Joerg