php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27606 Expression must be a modifiable lvalue.
Submitted: 2004-03-15 10:00 UTC Modified: 2004-03-16 16:32 UTC
From: joerg@php.net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5CVS-2004-03-15 (dev) OS: IRIX64 6.5.23
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
38 - 6 = ?
Subscribe to this entry?

 
 [2004-03-15 10:00 UTC] joerg@php.net
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







Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-16 16:32 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 23:01:27 2024 UTC