use strict?

This is a discussion on use strict? within the PHP Language forums, part of the PHP Programming Forums category; having spent several hours and having to redo a load of data because of a careless typo that i didnt ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-17-2005
p cooper
 
Posts: n/a
Default use strict?

having spent several hours and having to redo a load of data because of a
careless typo that i didnt spot, is there a PHP equivalent of the perl

use strict
to prevent bozos like me wasting time?

Reply With Quote
  #2 (permalink)  
Old 06-17-2005
Ewoud Dronkert
 
Posts: n/a
Default Re: use strict?

On Fri, 17 Jun 2005 08:58:18 GMT, p cooper wrote:
> is there a PHP equivalent of the perl
> use strict
> to prevent bozos like me wasting time?


Not exactly, but there's

error_reporting( E_ALL | E_STRICT );

E_STRICT was added in PHP5. See http://php.net/error-reporting (and
ini-setting display_errors).


--
Firefox Web Browser - Rediscover the web - http://getffox.com/
Thunderbird E-mail and Newsgroups - http://gettbird.com/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:33 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0