From: [EMAIL PROTECTED] Operating system: IRIX64 6.5.23 PHP version: 5CVS-2004-03-15 (dev) PHP Bug Type: Compile Failure Bug description: Expression must be a modifiable lvalue.
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 -- Edit bug report at http://bugs.php.net/?id=27606&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27606&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27606&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27606&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27606&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27606&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27606&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27606&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27606&r=support Expected behavior: http://bugs.php.net/fix.php?id=27606&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27606&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27606&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27606&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27606&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27606&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27606&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27606&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27606&r=float