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 >> phpdoc
phpdoc
Re: Ivan Sutherland's Sketchpad Thesis in a nice PDF!
by Dan Ingalls other posts by this author
Jan 25 2004 7:13PM messages near this date
[PHP-DOC] #27032 [Opn->Csd]: php.net/rand reads 'value', returns an integer | [PHP-DOC] Windows Help File.
>  If you are just commenting on the fact that something is not
 >  documented, save your breath. This is where you add to the
 >  documentation, not where you ask us to add the documentation. You may
 >  choose to email the PHP Documentation Team to discuss the change.

So here we go:
The function die() expects a string as parameter. Other functions that 
expect a string, but are provided with a integer, will cast that int to 
string. die() doesn't output anything and terminates the php script.

I could verify this on two machines:

Intel Celeron running SuSE Linux 8.2,
Kernel 2.4.20-4GB as provided by SuSE
Apache/1.3.27 as provided by SuSE
PHP/4.3.1 as provided by SuSE

and

Intel Pentium M (Centrino) running SuSE Linux 9.0
jailed in a VMWARE box on Windows XP ;-)
Kernel 2.4.21-99-default as provided by SuSE
Apache/1.3.28 as provided by SuSE
PHP/5.0.0b3 compiled with gcc version 3.3.1

Futher information provided on request.

Hope you can add this to the docs, because it took me quite a minute to 
figure out this behavior.

Regards,

      Oliver
Thread:
Joshua 'Schwa' Gargus
Dan Ingalls
Dan Ingalls
Gary Fisher

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved