当前位置: 首页>>代码示例>>PHP>>正文


PHP Gateway::setErrorHandling方法代码示例

本文整理汇总了PHP中Gateway::setErrorHandling方法的典型用法代码示例。如果您正苦于以下问题:PHP Gateway::setErrorHandling方法的具体用法?PHP Gateway::setErrorHandling怎么用?PHP Gateway::setErrorHandling使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Gateway的用法示例。


在下文中一共展示了Gateway::setErrorHandling方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     $this->gateway = new Gateway();
     $this->gateway->setCharsetHandler("utf8_decode", "ISO-8859-1", "ISO-8859-1");
     //Error types that will be rooted to the NetConnection debugger
     $this->gateway->setErrorHandling(E_ALL ^ E_NOTICE);
     $this->gateway->enableGzipCompression(25 * 1024);
 }
开发者ID:how,项目名称:openpasl,代码行数:8,代码来源:AMF.php

示例2: Gateway

include "globals.php";
//Include framework
include "core/amf/app/Gateway.php";
$gateway = new Gateway();
//Set where the services classes are loaded from, *with trailing slash*
//$servicesPath defined in globals.php
$gateway->setClassPath($servicesPath);
//Set where class mappings are loaded from (ie: for VOs)
//$voPath defined in globals.php
$gateway->setClassMappingsPath($voPath);
//Read above large note for explanation of charset handling
//The main contributor (Patrick Mineault) is French,
//so don't be afraid if he forgot to turn off iconv by default!
$gateway->setCharsetHandler("utf8_decode", "ISO-8859-1", "ISO-8859-1");
//Error types that will be rooted to the NetConnection debugger
$gateway->setErrorHandling(E_ALL ^ E_NOTICE);
if (PRODUCTION_SERVER) {
    //Disable profiling, remote tracing, and service browser
    $gateway->disableDebug();
    // Keep the Flash/Flex IDE player from connecting to the gateway. Used for security to stop remote connections.
    $gateway->disableStandalonePlayer();
}
//If you are running into low-level issues with corrupt messages and
//the like, you can add $gateway->logIncomingMessages('path/to/incoming/messages/');
//and $gateway->logOutgoingMessages('path/to/outgoing/messages/'); here
//$gateway->logIncomingMessages('in/');
//$gateway->logOutgoingMessages('out/');
//Explicitly disable the native extension if it is installed
//$gateway->disableNativeExtension();
//Enable gzip compression of output if zlib is available,
//beyond a certain byte size threshold
开发者ID:rdmpage,项目名称:gbif-sdr,代码行数:31,代码来源:gateway.php

示例3: Gateway

//Include framework
include "./core/amf/app/Gateway.php";
$gateway = new Gateway();
//Set where the services classes are loaded from, *with trailing slash*
//$servicesPath defined in globals.php
$gateway->setClassPath($servicesPath);
//Set where class mappings are loaded from (ie: for VOs)
//$voPath defined in globals.php
$gateway->setClassMappingsPath($voPath);
//Read above large note for explanation of charset handling
//The main contributor (Patrick Mineault) is French,
//so don't be afraid if he forgot to turn off iconv by default!
$gateway->setCharsetHandler("mbstring", "UTF-8", "UTF-8");
//$gateway->setCharsetHandler("iconv", "GB2312", "GB2312");
//Error types that will be rooted to the NetConnection debugger
$gateway->setErrorHandling(E_ERROR);
if (PRODUCTION_SERVER) {
    //Disable profiling, remote tracing, and service browser
    $gateway->disableDebug();
    // Keep the Flash/Flex IDE player from connecting to the gateway. Used for security to stop remote connections.
    $gateway->disableStandalonePlayer();
    $gateway->disableAuth();
    $gateway->disableTrace();
}
//If you are running into low-level issues with corrupt messages and
//the like, you can add $gateway->logIncomingMessages('path/to/incoming/messages/');
//and $gateway->logOutgoingMessages('path/to/outgoing/messages/'); here
//$gateway->logIncomingMessages('in/');
//$gateway->logOutgoingMessages('out/');
//Explicitly disable the native extension if it is installed
//$gateway->disableNativeExtension();
开发者ID:GameCrusherTechnology,项目名称:HeroTowerServer,代码行数:31,代码来源:gateway.php


注:本文中的Gateway::setErrorHandling方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。