---
title: "PHP Strict Standards问题"
author: "congjl2002"
date: "2012-04-27T22:36:16Z"
tags: []
categories: ["Web前端"]
slug: "php-strict-standards"
draft: false
lastmod: "2012-04-27T22:38:28Z"
id: 1502652
url: "https://congjl2002.iteye.com/blog/1502652"
---

异常信息：

( ! ) Strict standards: Declaration of SugarEmailAddress::save() should be compatible with that of SugarBean::save() in D:\\dev\\server\\xampp1\\htdocs\\sugar\\include\\SugarEmailAddress\\SugarEmailAddress.php on line *1011*

Call Stack # Time Memory Function Location 1 0.0017 523432 {main}( ) ..\\install.php**:**0 2 0.2274 7165168 require\_once( 'D:\\dev\\server\\xampp1\\htdocs\\sugar\\include\\entryPoint.php' ) ..\\install.php**:**60

 

在运行PHP软件时，如果遇到类似的错误，“Strict Standards”，不是错误，而是PHP5.3和之前的版本不太兼容。5.3之后的版本规定声明需要在使用之前。

修改php.ini就可以解决，其实就是不显示出这个异常：

 

**原php.ini**

**error\_reporting = E\_ALL | E\_STRICT**

 

**修改为**

**error\_reporting = E\_ALL & ~E\_NOTICE**