php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56779 parse error in processing version string
Submitted: 2006-01-17 22:24 UTC Modified: 2006-02-02 23:42 UTC
From: jehiah at gmail dot com Assigned:
Status: Closed Package: memcache (PECL)
PHP Version: 4.4.1 OS: Windows
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jehiah at gmail dot com
New email:
PHP Version: OS:

 

 [2006-01-17 22:24 UTC] jehiah at gmail dot com
Description:
------------
There is a parse error in how the extension parses a server response to getVersion()


Analysis
-----------
It crashes apache (in some strange sense of the word crashes) for version strings 3 characters or less
It can not parse a 4 character version string
It drops off the last 4 characters of version strings longer than 4 characters


Reproduce code:
---------------
You can use the Java Memcached to see a version response that is 3 characters long
http://jehiah.com/projects/j-memcached/

Expected result:
----------------
Here are some examples of how pecl interprets the version string

server responce => pecl extension result
----------------------
a => crash
aa => crash
aaa => crash
aaaa => could not get version
abcde => "a"



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-18 04:08 UTC] tony2001 at phpclub dot net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PECL.



 [2006-01-18 11:25 UTC] tony2001 at phpclub dot net
PECL/memcache doesn't cut anything, it returns everything that comes after "VERSION" string.
Also, backtrace would be useful.
 [2006-02-01 13:54 UTC] mikael at synd dot info
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

Please try latest revision from CVS and verify that it fixes your problem, there will also be a new version of memcache released today if you lack CVS.

Ref:
http://cvs.php.net/viewcvs.cgi/pecl/memcache/memcache.c?r1=1.37&r2=1.38
 [2006-02-02 23:42 UTC] jehiah at gmail dot com
just to confirm; the fix worked for me

thanks mikl
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 03:01:28 2024 UTC