php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62276 package.xml contains own md5 breaking install
Submitted: 2012-06-09 12:40 UTC Modified: 2012-06-10 01:32 UTC
From: ralfbecker at outdoor-training dot de Assigned: johannes (profile)
Status: Closed Package: mysqlnd_ms (PECL)
PHP Version: 5.4.4RC2 OS: CentOS 6.2
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: ralfbecker at outdoor-training dot de
New email:
PHP Version: OS:

 

 [2012-06-09 12:40 UTC] ralfbecker at outdoor-training dot de
Description:
------------
You package.xml contains the md5sum from itself, which obviously cant work as it 
changes once to add it ;-)


[root@master ~]# pecl install mysqlnd_ms
downloading mysqlnd_ms-1.3.2.tgz ...
Starting to download mysqlnd_ms-1.3.2.tgz (342,511 bytes)
.....................................................................done: 342,511 
bytes
ERROR: bad md5sum for file /var/tmp/mysqlnd_ms/package.xml

Downloading, untaring, removing md5sum from package.xml, taring it again and it 
installs without problem.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-09 13:37 UTC] johannes@php.net
This bug has been fixed in SVN.

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/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

This has already been fixed in svn. Next release will, hopefully, be correct.
 [2012-06-09 13:37 UTC] johannes@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: johannes
 [2012-06-09 16:49 UTC] ralfbecker at outdoor-training dot de
Hi Jonhannes,

thanks for the quick fix :-)

I run into an other problem, when trying to use mysqlnd_ms plugin compliled 
with pecl install <modified tgz>

Strace shows PHP can not load it because of a missing symbol:

open("/usr/lib64/php/modules/mysqlnd_ms.so", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260K\0\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=816003, ...}) = 0
mmap(NULL, 2301320, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7f8322338000
mprotect(0x7f8322369000, 2093056, PROT_NONE) = 0
mmap(0x7f8322568000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x30000) = 0x7f8322568000
close(3)                                = 0
munmap(0x7f8322338000, 2301320)         = 0
write(2, "PHP Warning:  PHP Startup: Unabl"..., 192PHP Warning:  PHP Startup: 
Unable to load dynamic library '/usr/lib64/php/modules/mysqlnd_ms.so' - 
/usr/lib64/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_globals in 
Unknown on line 0

Any ideas?

Ralf
 [2012-06-10 01:32 UTC] johannes@php.net
missing mysqlnd_globals sounds like you either compiled it linking against a non-thread-safe PHP but try loading it into a thread-safe PHP or you are loading it into a PHP linked against libmysql, not mysqlnd.

Note: The this sounds more like a "support" case but the bug tracker is not really a good support forum, but by mailing mysql at php net you get to Andrey, Ulf and me. This issue certainly is closed :-)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 15:01:29 2024 UTC