ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-Lib-Dev
php-Lib-Dev
[phplib-dev] the downloadable prepend.php3
by giancarlo pinerolo other posts by this author
Jul 20 2001 10:32PM messages near this date
[phplib-dev] the downloadable prepend.php3 | [phplib-dev] Sessions over Internet Explorer
By a pure matter of chance, the prepend.php3 that people can download
has a terrible programming mistake 
"if not A or not B" instead of  "if not A and not B" 
such a test will always fail

>  if (!isset($_PHPLIB) or !is_array($_PHPLIB)) {
>  # Aren't we nice? We are prepending this everywhere
>  # we require or include something so you can fake
>  # include_path  when hosted at provider that sucks.
>    $_PHPLIB["libdir"] = "";
>  }               

this is a programming mistake, that normally stands as an example to
never be done, but luckily it will save people from downloading the bug

But maybe it was intentional...

Giancarlo


-- 
------------------------------------
Giancarlo Pinerolo de Septis
Web Development & System Integration
email: giancarlo@[...].net
------------------------------------
... you can seldom find traces of the evident ...

-- 
Abbestellen mit Mail an:   phplib-dev-unsubscribe@[...].de
Kommandoliste mit Mail an: phplib-dev-help@lists.netuse.de

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved