Précédent   Forum des professionnels en informatique > PHP > Outils
Outils Forum d'entraide sur les outils pour développeurs PHP : EDI, installation, administration... Avant de poster : FAQ outils, toutes les FAQ PHP et les comparatifs
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 17/10/2005, 11h14   #1
Invité régulier
 
Inscription : août 2005
Messages : 31
Détails du profil
Informations forums :
Inscription : août 2005
Messages : 31
Points : 7
Points : 7
Par défaut [Script] désactiver les erreurs E_STRICT

Bonjour,

Je n'arrive pas à désactiver les erreurs E_STRICT.
J'ai essayé:
error_reporting(E_USER_ERROR & ~ E_STRICT); mais ca ne fonctionne pas.

C'est très gènant car de nombreuses libs que j'utilise sont écrites en php 4.

Merci de votre aide.
jeanvincent est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 17/10/2005, 11h22   #2
Invité régulier
 
Inscription : août 2005
Messages : 31
Détails du profil
Informations forums :
Inscription : août 2005
Messages : 31
Points : 7
Points : 7
En éditant directement le php.ini:

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT

ca ne fonctionne pas non plus.
Du coup, lorsque j'utilise PEAR ou autres, mon script ne fonctionne plus
jeanvincent est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 17/10/2005, 11h26   #3
Membre Expert
 
Avatar de ska_root
 
Homme
Développeur informatique
Inscription : août 2005
Messages : 1 179
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 42
Localisation : France

Informations professionnelles :
Activité : Développeur informatique
Secteur : Service public

Informations forums :
Inscription : août 2005
Messages : 1 179
Points : 1 580
Points : 1 580
c'est pas plutôt :
Code :
1
2
 
error_reporting(E_ALL ^ E_STRICT);
:
__________________
http://cdemarche.developpez.com/

Tu as la réponse à ta question ? N'oublies pas le petit en bas à gauche de ton message...
ska_root est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 17/10/2005, 11h31   #4
Invité régulier
 
Inscription : août 2005
Messages : 31
Détails du profil
Informations forums :
Inscription : août 2005
Messages : 31
Points : 7
Points : 7
Merci de ta réponse... mais en fait avec ta solution c'est encore pire

J'avais mis mes erreurs dans une div et ca m'a quand même affiché ca en plus:

Citation:
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /Applications/MAMP/bin/php5/lib/php/PEAR.php on line 103

Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /Applications/MAMP/bin/php5/lib/php/PEAR.php on line 112

Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /Applications/MAMP/bin/php5/lib/php/PEAR.php on line 121

Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /Applications/MAMP/bin/php5/lib/php/PEAR.php on line 129

Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /Applications/MAMP/bin/php5/lib/php/PEAR.php on line 137

Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /Applications/MAMP/bin/php5/lib/php/PEAR.php on line 699

Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /Applications/MAMP/bin/php5/lib/php/PEAR.php on line 700

Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /Applications/MAMP/bin/php5/lib/php/PEAR.php on line 701

Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /Applications/MAMP/bin/php5/lib/php/PEAR.php on line 702

Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /Applications/MAMP/bin/php5/lib/php/PEAR.php on line 703

Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /Applications/MAMP/bin/php5/lib/php/PEAR.php on line 704

Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /Applications/MAMP/bin/php5/lib/php/PEAR.php on line 705
jeanvincent est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 17/10/2005, 14h33   #5
Membre Expert
 
Avatar de ska_root
 
Homme
Développeur informatique
Inscription : août 2005
Messages : 1 179
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 42
Localisation : France

Informations professionnelles :
Activité : Développeur informatique
Secteur : Service public

Informations forums :
Inscription : août 2005
Messages : 1 179
Points : 1 580
Points : 1 580
ben non comprends pas

normalement c'est bien ce que tu as mis :
Code :
1
2
 
error_reporting (E_ALL & ~E_NOTICE & ~E_STRICT):
__________________
http://cdemarche.developpez.com/

Tu as la réponse à ta question ? N'oublies pas le petit en bas à gauche de ton message...
ska_root est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 05h14.


 
 
 
 
Partenaires

Hébergement Web