#50237 [NEW]: [PATCH] - Enable correct behaviour when building PHP6 with Sun's compilers
From: yoarvi at gmail dot com
Operating system: Solaris 5.10 (SPARC)
PHP version: 6SVN-2009-11-20 (SVN)
PHP Bug Type: *Compile Issues
Bug description: [PATCH] - Enable correct behaviour when building PHP6 with Sun's compilers
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 bug report at http://bugs.php.net/?id=50237&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50237&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50237&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50237&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50237&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50237&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50237&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50237&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50237&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50237&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50237&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50237&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50237&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50237&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50237&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50237&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50237&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50237&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50237&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50237&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50237&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50237&r=mysqlcfg
Thread (2 messages)
- yoarvi at gmail dot com