#25174 [Opn->Csd]: Wrong handling of readlink() in OS/Guess.php
| From: | cellog@php.net | Date: | Fri, 24 Oct 2003 05:35:49 +0000 |
| Subject: | #25174 [Opn->Csd]: Wrong handling of readlink() in OS/Guess.php | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-22940@lists.php.net to get a copy of this message | ||
ID: 25174
Updated by: cellog@php.net
Reported By: mk362 at mch dot osram dot de
-Status: Open
+Status: Closed
Bug Type: PEAR related
Operating System: SuSE Linux 8.2, 7.3, 7.2
PHP Version: 4.3.2
-Assigned To: nohn
+Assigned To: cellog
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.
finally applied Marko's fix.
Greg
Previous Comments:
------------------------------------------------------------------------
[2003-09-01 09:34:09] mk362 at mch dot osram dot de
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
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
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