From:             [EMAIL PROTECTED]
Operating system: NetWare
PHP version:      5.2.7RC1
PHP Bug Type:     SimpleXML related
Bug description:  compilation of simplexml for NetWare breaks

Description:
------------
compilation of simplexml for NetWare with CodeWarrior compiler breaks
because of different types without using a cast:

Compiling simplexml.c...
simplexml.c:1236: illegal implicit conversion from 'const void *' to
simplexml.c:1236: 'unsigned char *'

Errors caused tool to abort.
make: *** [release/simplexml.obj] Error 1
make: Leaving directory `C:/php5_test/php-5.2.7RC1/ext/simplexml'



Reproduce code:
---------------
compile...

Expected result:
----------------
compile doesnt break.

Actual result:
--------------
compile breaks.

suggested fix:
--- simplexml.c.orig    Thu Sep 11 16:23:34 2008
+++ simplexml.c Wed Oct 15 19:21:53 2008
@@ -1233,7 +1233,7 @@
                        if (nodeptr->type == XML_TEXT_NODE) {
                                _node_as_zval(sxe, nodeptr->parent, value, 
SXE_ITER_NONE, NULL, NULL,
0 TSRMLS_CC);
                        } else if (nodeptr->type == XML_ATTRIBUTE_NODE) {
-                               _node_as_zval(sxe, nodeptr->parent, value, 
SXE_ITER_ATTRLIST,
(char*)nodeptr->name, nodeptr->ns ? nodeptr->ns->href : NULL, 0
TSRMLS_CC);
+                               _node_as_zval(sxe, nodeptr->parent, value, 
SXE_ITER_ATTRLIST,
(char*)nodeptr->name, nodeptr->ns ? (unsigned char*)nodeptr->ns->href :
NULL, 0 TSRMLS_CC);
                        } else {
                                _node_as_zval(sxe, nodeptr, value, 
SXE_ITER_NONE, NULL, NULL, 0
TSRMLS_CC);
                        }


-- 
Edit bug report at http://bugs.php.net/?id=46323&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=46323&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=46323&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=46323&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=46323&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=46323&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=46323&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=46323&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=46323&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=46323&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=46323&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=46323&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=46323&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=46323&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=46323&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=46323&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=46323&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=46323&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=46323&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=46323&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=46323&r=mysqlcfg

Reply via email to