ID: 26519
User updated by: osvetlik at kerio dot com
Reported By: osvetlik at kerio dot com
-Status: Feedback
+Status: Open
Bug Type: Compile Failure
Operating System: LInux Fedora Core 1
PHP Version: 4.3.4
New Comment:
(pts/6)[EMAIL PROTECTED]:~>
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/cc1plus
void *fce1(void) { return 0;}
void fce2(void) { char *p = fce1(); }
void* fce1() void* fce1() void fce2()
<stdin>:2: error: invalid conversion from `void*' to `char*'
void fce2()
Execution times (seconds)
parser : 0.01 (50%) usr 0.00 ( 0%) sys 0.00 ( 0%)
wall
TOTAL : 0.02 0.00 22.50
(pts/6)[EMAIL PROTECTED]:~>
Previous Comments:
------------------------------------------------------------------------
[2003-12-04 07:08:18] [EMAIL PROTECTED]
Can you please explain WHY this needs to be changed?
------------------------------------------------------------------------
[2003-12-04 06:53:57] osvetlik at kerio dot com
I'm sorry I forgot the file name:
include/php/ext/standard/php_string.h
------------------------------------------------------------------------
[2003-12-04 06:50:25] osvetlik at kerio dot com
Description:
------------
line 142 should read:
if ((p = (char *)memchr(p, *needle, (end-p+1))) && ne ==
p[needle_len-1]) {
instead of:
if ((p = memchr(p, *needle, (end-p+1))) && ne == p[needle_len-1]) {
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26519&edit=1