PHP 7.2说Yaz函数未定义

时间:2018-08-21 14:44:40

标签: php z39.50

我已经安装了yaz库(请参阅下面的phpinfo)。 yaz.so位于适当的扩展文件夹中,它显示在我的phpinfo中(请参见下文)。

但是,当我尝试使用任何功能时,php表示未定义。

我想念什么?

来自phpInfo()

using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Auth;
using Microsoft.WindowsAzure.Storage.Blob;
using OpenQA.Selenium;
using System;
using System.IO;
using System.Net;

namespace UnitTestProject
{
    class ScreenShot
    {
        public static void UploadImage_URL(string ImageName)
        {
            string accountname = "";

            string accesskey = "";

            try
            {

                StorageCredentials creden = new StorageCredentials(accountname, accesskey);

                CloudStorageAccount acc = new CloudStorageAccount(creden, useHttps: true);

                CloudBlobClient client = acc.CreateCloudBlobClient();

                CloudBlobContainer cont = client.GetContainerReference("validation-results");

                cont.CreateIfNotExists();

                cont.SetPermissions(new BlobContainerPermissions
                {
                    PublicAccess = BlobContainerPublicAccessType.Blob

                });

                HttpWebRequest request = (HttpWebRequest)WebRequest.Create(file);
                HttpWebResponse response = (HttpWebResponse)request.GetResponse();
                Stream inputStream = response.GetResponseStream();
                CloudBlockBlob cblob = cont.GetBlockBlobReference(ImageName);
                cblob.UploadFromStream(inputStream);
            }

            catch (Exception ex) { Console.WriteLine(ex); }

        }

        public static void TakeScreenshot(IWebDriver driver)
        {

            Screenshot ss = ((ITakesScreenshot)driver).GetScreenshot();
            string Runname = DateTime.Now.ToString("yyyy-MM-dd-HH_mm_ss");
            String ScreenShotName = Runname + ".Jpg"; 

             UploadImage_URL(ScreenShotName);
        }
    }
}

0 个答案:

没有答案