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

This bug has been fixed in SVN.

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.

ok, thanks. 


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

[2009-09-17 02:45:25] s...@php.net

Automatic comment from SVN on behalf of srinatar
Revision: http://svn.php.net/viewvc/?view=revision&revision=288393
Log: - Fixed bug #49572 (use of C++ style comments causes build
failure)

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

[2009-09-16 18:56:05] paj...@php.net

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

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

[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