PHP soap缓存的问题

sever端WSDL有更新(类有更新),一定要注意清除wsdl缓存,具体配置可打开php.ini搜索soap

soap.wsdl_cache_enabled=1
; Sets the directory name where SOAP extension will put cache files.
soap.wsdl_cache_dir=”/tmp”

找到缓存目录,清除掉wsdl缓存。

不然,可能触发“Function (“****”) is not a valid method for this service”的错误

页面调试,也可以在头部加上

ini_set(“soap.wsdl_cache_enabled”, “0”); // disabling WSDL cache

代码注释篇,神兽护佑,代码无bug

  收集的几个有意思的代码注释

	/**
* 
 *----------Dragon be here!----------/
 *    ┏┓   ┏┓
 *   ┏┛┻━━━┛┻┓
 *   ┃       ┃
 *   ┃   ━   ┃
 *   ┃ ┳┛ ┗┳ ┃
 *   ┃       ┃
 *   ┃   ┻   ┃
 *   ┃       ┃
 *   ┗━┓   ┏━┛
 *     ┃   ┃
 *     ┃   ┃
 *     ┃   ┗━━━┓
 *     ┃       ┣┓
 *     ┃       ┏┛
 *     ┗┓┓┏━┳┓┏┛
 *      ┃┫┫ ┃┫┫
 *      ┗┻┛ ┗┻┛
 * ━━━━━━神兽出没━━━━━━
 */

/**
 *         ┏┓   ┏┓
 *        ┏┛┻━━━┛┻┓  
 *        ┃       ┃   
 *        ┃   ━   ┃   
 *        ┃ >   < ┃
 *        ┃       ┃ 
 *        ┃... ⌒ ... ┃
 *        ┃       ┃ 
 *        ┗━┓   ┏━┛ 
 *          ┃   ┃ Code is far away from bug with the animal protecting           
 *          ┃   ┃    神兽保佑,代码无bug
 *          ┃   ┃            
 *          ┃   ┃         
 *          ┃   ┃ 
 *          ┃   ┃            
 *          ┃   ┗━━━┓ 
 *          ┃       ┣┓ 
 *          ┃       ┏┛ 
 *          ┗┓┓┏━┳┓┏┛ 
 *           ┃┫┫ ┃┫┫ 
 *           ┗┻┛ ┗┻┛
 */

/**
 *        ┏┓   ┏┓+ + 
 *       ┏┛┻━━━┛┻┓ + + 
 *       ┃       ┃   
 *       ┃   ━   ┃ ++ + + + 
 *       ████━████ ┃+  
 *       ┃       ┃ + 
 *       ┃   ┻   ┃ 
 *       ┃       ┃ + + 
 *       ┗━┓   ┏━┛ 
 *         ┃   ┃            
 *         ┃   ┃ + + + + 
 *         ┃   ┃    Code is far away from bug with the animal protecting        
 *         ┃   ┃ +     神兽保佑,代码无bug   
 *         ┃   ┃ 
 *         ┃   ┃  +          
 *         ┃    ┗━━━┓ + + 
 *         ┃        ┣┓ 
 *         ┃        ┏┛ 
 *         ┗┓┓┏━┳┓┏┛ + + + + 
 *          ┃┫┫ ┃┫┫ 
 *          ┗┻┛ ┗┻┛+ + + +
 */