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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 07:01:32 2024 UTC