#26519 [Opn->Csd]: Using embedded PHP fails

From: Date: Thu, 04 Dec 2003 12:42:43 +0000
Subject: #26519 [Opn->Csd]: Using embedded PHP fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-51687@lists.php.net to get a copy of this message
ID: 26519 Updated by: sniper@php.net Reported By: osvetlik at kerio dot com -Status: Open +Status: Closed Bug Type: Compile Failure Operating System: LInux Fedora Core 1 PHP Version: 4.3.4 New Comment: This bug has been fixed in CVS. In case this was a PHP problem, 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/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2003-12-04 07:36:29] osvetlik at kerio dot com (pts/6)osvetlik@osvetlik:~> /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)osvetlik@osvetlik:~> ------------------------------------------------------------------------ [2003-12-04 07:08:18] sniper@php.net 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

« previous php.bugs (#51687) next »