Edit report at http://bugs.php.net/bug.php?id=50237&edit=1

 ID:               50237
 Updated by:       fel...@php.net
 Reported by:      yoarvi at gmail dot com
 Summary:          [PATCH] - Enable correct behaviour when building PHP6
                   with Sun's compilers
-Status:           Open
+Status:           Bogus
 Type:             Bug
 Package:          Compile Failure
 Operating System: Solaris 5.10 (SPARC)
 PHP Version:      6SVN-2009-11-20 (SVN)

 New Comment:

.


Previous Comments:
------------------------------------------------------------------------
[2009-11-20 10:16:53] yoarvi at gmail dot com

Description:
------------
The Sun Studio compilers don't seem to like it when a vararg is passed

as a zstr union and then retrieved as a (UChar *). Specifying

class_name.v instead of class_name to php_printf fixes the problem.

This doesn't seem to be a problem on Ubuntu/gcc.



Based on feedback

(http://forums.sun.com/thread.jspa?threadID=5415962&tstart=00) from

the Sun compiler folks, it seems that the following patch is necessary

for PHP6 (trunk).



http://bitbucket.org/arvi/arviq/src/tip/svn-zstr-varargs-patch.txt

Reproduce code:
---------------
http://marc.info/?l=php-internals&m=125802929326277&w=2 is the relevant
mail thread on internals.

Expected result:
----------------
Tests such as tests/classes/__set__get_001.php should pass when executed
using a PHP built with Sun Studio's compilers.

Actual result:
--------------
Lots of test failures on Solaris.


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



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=50237&edit=1

Reply via email to