ID:               48448
 Updated by:       ka...@php.net
 Reported By:      neko at nekochan dot net
-Status:           Open
+Status:           Closed
 Bug Type:         Compile Failure
 Operating System: IRIX 6.5.30
 PHP Version:      5.2.10RC1
-Assigned To:      
+Assigned To:      kalle
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Fixed in the next 5.2.x release


Previous Comments:
------------------------------------------------------------------------

[2009-06-02 17:13:01] neko at nekochan dot net

This patch does indeed clear the compile issue.

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

[2009-06-02 12:49:13] ka...@php.net

I'm not generally sure about this, but compared to PHP_5_3/HEAD the
code looks like this:

Index: cast.c
===================================================================
RCS file: /repository/php-src/main/streams/cast.c,v
retrieving revision 1.12.2.1.2.5
diff -u -r1.12.2.1.2.5 cast.c
--- cast.c      19 Apr 2009 17:10:52 -0000      1.12.2.1.2.5
+++ cast.c      2 Jun 2009 12:48:29 -0000
@@ -219,7 +219,7 @@
                                if (ret != SUCCESS) {
                                        php_stream_close(newstream);
                                } else {
-                                       int retcode = 
php_stream_cast(newstream, castas | flags, ret,
show_err);
+                                       int retcode = 
php_stream_cast(newstream, castas | flags, (void
**)ret, show_err);
 
                                        if (retcode == SUCCESS)
                                                rewind(*(FILE**)ret);



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

[2009-06-02 06:32:31] neko at nekochan dot net

Description:
------------
Able to compile up to and including php-5.2.9 without error 
and run in a production environment. Attempt to build php-5.2.10RC1 
fails in main/streams/cast.c (Argument of type "int" is incompatible 
with parameter of type "void **".)

IRIX64 Kazehana 6.5 6.5.30f 07202013 IP35
MIPSpro Compilers: Version 7.4.4m

Actual result:
--------------
/bin/sh /opt/build/php-5.2.10RC1/libtool --silent --preserve-dup-deps 
--mode=compile c99  -Imain/streams/ -I/opt/build/php-
5.2.10RC1/main/streams/ -DPHP_ATOM_INC -I/opt/build/php-
5.2.10RC1/include -I/opt/build/php-5.2.10RC1/main -I/opt/build/php-
5.2.10RC1 -I/opt/build/php-5.2.10RC1/ext/date/lib -
I/usr/nekoware/include/libxml2 -I/usr/nekoware/include -
I/usr/nekoware/include/freetype2 -I/opt/build/php-
5.2.10RC1/ext/mbstring/oniguruma -I/opt/build/php-
5.2.10RC1/ext/mbstring/libmbfl -I/opt/build/php-
5.2.10RC1/ext/mbstring/libmbfl/mbfl -
I/usr/nekoware/mysql5/include/mysql -I/usr/nekoware/pgsql/include -
I/opt/build/php-5.2.10RC1/TSRM -I/opt/build/php-5.2.10RC1/Zend  -
D_XPG_IV -L/usr/nekoware/lib -L/usr/lib32  -I/usr/include -mips4 -O3 -
I/usr/nekoware/include -I/usr/include -Wl,-rpath -
Wl,/usr/nekoware/lib:/usr/nekoware/mysql5/lib/mysql -
OPT:Olimit=0:roundoff=3 -TARG:platform=IP35:proc=r16000   -c 
/opt/build/php-5.2.10RC1/main/streams/cast.c -o main/streams/cast.lo

cc-1164 c99: ERROR File = /opt/build/php-
5.2.10RC1/main/streams/cast.c, Line = 222
  Argument of type "int" is incompatible with parameter of type "void 
**".

                                        int retcode = 
php_stream_cast(newstream, castas | flags, ret, show_err);
                                                      ^

1 error detected in the compilation of "/opt/build/php-
5.2.10RC1/main/streams/cast.c".
gmake: *** [main/streams/cast.lo] Error 1


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


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

Reply via email to