MySQL too lazy to fix their shared libraries API_MySQL

WBOY
Lepaskan: 2016-06-01 13:16:04
asal
1017 orang telah melayarinya

famzah (3425087)writes"Since version 5.5 MySQL started to ship the client/server binaries statically linked against the "libmysqlclient.a" library. This uses more disk space and also takes away the option to fix the shared code in the library once, rather than by recompiling every single binary which uses it.
Thesummary by Axel Schwenkefrom MariaDB is right on the target:

  1. In the past we exported every symbol from libmysqlclient.so (this was certainly bad)
  2. We changed this to export only API functions (good)
  3. Our own (MySQL) clients use non-API functions and thus don't work with the new dynamic lib. There is a word for this: it's a bug.
  4. We are too lazy to fix the clients (or extend the API). So we take the short path and link the clients with the static lib. I also have a word for this: disgusting.
"
sumber:php.cn
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan