ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-Dev
php-Dev
#27606 [Opn->Csd]: Expression must be a modifiable lvalue.
by other posts by this author
Mar 16 2004 9:32PM messages near this date
#27606 [NEW]: Expression must be a modifiable lvalue. | #27605 [Bgs->Opn]: case sensitivity of attributes differs in ldap_search and ldap_add/modify
ID:               27606
 Updated by:       iliaa@[...].net
 Reported By:      joerg@[...].net
-Status:           Open
+Status:           Closed
 Bug Type:         Compile Failure
 Operating System: IRIX64 6.5.23
 PHP Version:      5CVS-2004-03-15 (dev)
 New Comment:

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.




Previous Comments:
------------------------------------------------------------------------

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








------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27606&edit=1
Thread:
joerg@php.net


Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved