php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50237 [PATCH] - Enable correct behaviour when building PHP6 with Sun's compilers
Submitted: 2009-11-20 10:16 UTC Modified: 2010-05-09 23:10 UTC
From: yoarvi at gmail dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 6SVN-2009-11-20 (SVN) OS: Solaris 5.10 (SPARC)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: yoarvi at gmail dot com
New email:
PHP Version: OS:

 

 [2009-11-20 10:16 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-09 23:10 UTC] felipe@php.net
-Status: Open +Status: Bogus
 [2010-05-09 23:10 UTC] felipe@php.net
.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 03:01:31 2025 UTC