ID:               49572
 Updated by:       paj...@php.net
 Reported By:      mamfelt at gmail dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         Compile Failure
 Operating System: AIX 6.1
 PHP Version:      5.2SVN-2009-09-16 (snap)
-Assigned To:      
+Assigned To:      srinatar
 New Comment:

Can you simply commit the fix please? All affected branches? :-)


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

[2009-09-16 18:50:13] srina...@php.net

thanks for reporting this bug. this issue seems to be brought in with
svn commit r280638

you can work around this issue - for now - by using -qcpluscmt within
the CFLAGS

export CFLAGS=-qcpluscmt
./configure ...
gmake

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

[2009-09-16 17:15:22] mamfelt at gmail dot com

Description:
------------
A C++ style comment in main/streams/memory.c causes a build failure.



Reproduce code:
---------------
in /php5.2-200909161430/main/streams/memory.c:

self->innerstream = php_stream_memory_create_rel(mode);
php_stream_auto_cleanup(self->innerstream); // do not warn if
innerstream is GC'ed before stream
((php_stream_memory_data*)self->innerstream->abstract)->owner_ptr =
&self->innerstream;

Corrected as:

self->innerstream = php_stream_memory_create_rel(mode);
php_stream_auto_cleanup(self->innerstream); /* do not warn if
innerstream is GC'ed before stream */
((php_stream_memory_data*)self->innerstream->abstract)->owner_ptr =
&self->innerstream;

Expected result:
----------------
A normal build

Actual result:
--------------
prj/php5.2-200909161430/main/streams/memory.c", line 566.53: 1506-046
(S) Syntax error.
"/data/home/michael/prj/php5.2-200909161430/main/streams/memory.c",
line 566.105: 1506-209 (S) Character constants must end before the end
of a line.
"/data/home/michael/prj/php5.2-200909161430/main/streams/memory.c",
line 566.88: 1506-076 (W) Character constant 'ed before stream' has more
than 4 characters. No more than rightmost 4 characters are used.
....


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


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

Reply via email to