#25174 [Opn]: Wrong handling of readlink() in OS/Guess.php
| From: | mk362 at mch dot osram dot de | Date: | Mon, 01 Sep 2003 14:34:09 +0000 |
| Subject: | #25174 [Opn]: Wrong handling of readlink() in OS/Guess.php | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-20960@lists.php.net to get a copy of this message | ||
ID: 25174
User updated by: mk362 at mch dot osram dot de
Reported By: mk362 at mch dot osram dot de
Status: Open
Bug Type: PEAR related
Operating System: SuSE Linux 8.2, 7.3, 7.2
PHP Version: 4.3.2
Assigned To: nohn
New Comment:
Hi,
since there's no response up to now, I'd recommend to modify
Guess.php:line 179 from
---
if (!($major && $minor) && file_exists('/lib/libc.so.6'))
---
to
---
if (!($major && $minor) && is_link('/lib/libc.so.6'))
---
to prevent that the program creates problems in case the lib is not
symbolically linked.
Marko
Previous Comments:
------------------------------------------------------------------------
[2003-08-28 04:25:46] mk362 at mch dot osram dot de
Status is still OPEN.
Marko
------------------------------------------------------------------------
[2003-08-28 04:23:00] mk362 at mch dot osram dot de
Hi Nohn,
did you do the test case from the "reproduce code" section?
Even with an upgraded PEAR you will produce this error, since that code
wasn't changed at all.
Marko
------------------------------------------------------------------------
[2003-08-24 12:38:16] nohn@php.net
Hmmm... After upgrading to PEAR 1.2.1 by hand everything works fine. So
this already seems to be closed.
Verified this on another SuSE-Machine (SuSE 7.3)
------------------------------------------------------------------------
[2003-08-24 12:16:50] cellog@php.net
I don't have SuSE linux. nohn,do you have enough knowhow to provide a
patch for this? I can't be sure that anything I would do fixes this.
If not, just assign it back to me.
I can commit a patch you provide.
Greg
------------------------------------------------------------------------
[2003-08-24 10:13:05] nohn@php.net
verified on suse 7.2, php 4.3.2
downloading PEAR-1.2.1.tgz ...
...done: 83,126 bytes
Notice: Undefined offset: 1 in Guess.php on line 173
Warning: readlink(): Invalid argument in Guess.php on line 181
upgrade-all ok: PEAR 1.2.1
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/25174
--
Edit this bug report at http://bugs.php.net/?id=25174&edit=1