当前位置: 动力学知识库 > 问答 > 编程问答 >

Are PHP extensions just "shell cases" for real libraries?

问题描述:

If this is true and PHP extensions run shell commands in the background, why not just use shell_exec instead? Would there be any difference? I'm under the impression that PHP extension are usually written by newbs because they are full of bugs. For example the imagick extension :/ So why not communicate with the library directly?

网友答案:

No, absolutely not. Most PHP extensions interface directly with a C library, and imagick is no exception.

The shoddiness of the imagick extension is entirely the fault of the ImageMagick library itself.

分享给朋友:
您可能感兴趣的文章:
随机阅读: