Zend_framework-加载mysql.so扩展的问题(_zend_list_find)

时间:2017-02-05 17:47:56

标签: php zend-framework

我正在尝试为php 7.0安装mysql.so扩展。不幸的是,我有这个问题:

import numpy as np
import ctypes

size=100
a=np.ones(size).astype(np.float32)
b=np.ones(size).astype(np.float32)
c=np.zeros(size).astype(np.float32)
from numpy.ctypeslib import ndpointer

lib = ctypes.cdll.LoadLibrary('./test.so')
fun = lib.add #using the c-function
fun.restype = None
fun.argtypes = [ctypes.c_int,
                ndpointer(ctypes.c_float),
                ndpointer(ctypes.c_float),
                ndpointer(ctypes.c_float)]
#I'm giving the c-function the 3 pointers pointing to the a,b and c arrays in memory.

%timeit fun(size,a,b,c)
%timeit c=a+b

我已经在互联网上搜索了解决方案,但我找不到任何东西。我也试过安装zend-framework,但什么也没发生。

0 个答案:

没有答案