php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26519 Using embedded PHP fails
Submitted: 2003-12-04 06:50 UTC Modified: 2003-12-04 07:42 UTC
From: osvetlik at kerio dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.4 OS: LInux Fedora Core 1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: osvetlik at kerio dot com
New email:
PHP Version: OS:

 

 [2003-12-04 06:50 UTC] 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]) {



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-04 06:53 UTC] osvetlik at kerio dot com
I'm sorry I forgot the file name:
include/php/ext/standard/php_string.h
 [2003-12-04 07:08 UTC] sniper@php.net
Can you please explain WHY this needs to be changed?

 [2003-12-04 07:36 UTC] 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:42 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 17:01:29 2024 UTC