cvs: phpweb / docs.php /manual php3.php
| From: | Philip Olson | Date: | Sat, 11 Apr 2009 03:07:00 +0000 |
| Subject: | cvs: phpweb / docs.php /manual php3.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-4382@lists.php.net to get a copy of this message | ||
philip Sat Apr 11 03:07:00 2009 UTC
Added files:
/phpweb/manual php3.php
Modified files:
/phpweb docs.php
Log:
Added the PHP 3 Manual (of sorts) to the archives.
# Found this on my hard drive so figure what the heck... commit!
http://cvs.php.net/viewvc.cgi/phpweb/docs.php?r1=1.145&r2=1.146&diff_format=u
Index: phpweb/docs.php
diff -u phpweb/docs.php:1.145 phpweb/docs.php:1.146
--- phpweb/docs.php:1.145 Fri Apr 11 15:26:21 2008
+++ phpweb/docs.php Sat Apr 11 03:07:00 2009
@@ -1,5 +1,5 @@
<?php
-// $Id: docs.php,v 1.145 2008/04/11 15:26:21 bjori Exp $
+// $Id: docs.php,v 1.146 2009/04/11 03:07:00 philip Exp $
$_SERVER['BASE_PAGE'] = 'docs.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
@@ -119,6 +119,7 @@
<li>
You can still read a copy of the original <a href="/manual/phpfi2.php">PHP/FI
2.0 Manual</a> on our site, which we only host for historical purposes.
+ The same applies to the <a href="/manual/php3.php">PHP 3 Manual</a>.
</li>
</ul>
http://cvs.php.net/viewvc.cgi/phpweb/manual/php3.php?view=markup&rev=1.1
Index: phpweb/manual/php3.php
+++ phpweb/manual/php3.php
<?php
// $Id: php3.php,v 1.1 2009/04/11 03:07:00 philip Exp $
$_SERVER['BASE_PAGE'] = 'manual/php3.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
site_header('PHP Version 3 Documentation');
?>
<h1 style="text-align: center;">PHP Version 3</h1>
<h1>Table of Contents</h1>
<ol>
<li><a href="#introduction">Introduction</a></li>
<li><a href="#directives">Configuration Directives</a></li>
<li><a href="#changed_behaviour">Changed behaviour</a></li>
<li><a href="#misc">Miscellaneous</a></li>
<li><a href="#migration">Migration</a></li>
<li><a href="#debugger">Debugger</a></li>
<li><a href="#internals">Internals</a></li>
</ol>
<hr />
<h2><a name="introduction"
id="introduction">Introduction</a></h2>
<p>
The PHP 3 documentation was removed from the PHP Manual and placed here for
historical purposes. An attempt was made to preserve all of the text although
it's highly likely that some is missing. The last PHP 3 release (3.0.18) was
made on October 20, 2000.
</p>
<p>
See the <a href="http://museum.php.net/">PHP Museum</a> for
downloads, and
also read the <a href="http://php.net/history">history</a> for
further
information about PHP 3.
</p>
<h2><a name="directives" id="directives">Configuration
Directives</a></h2>
<p>
Most directives are prepended with php3_ instead of php_. These differences
are not mentioned in this document.
</p>
<dl>
<dt><big>Changed</big></dt>
<dd>
<p>
FTP configure option changed from <em>--with-ftp</em> to
<em>--enable-ftp</em>
</p>
</dd>
<dd>
<p>
The value of E_ALL is 63.
</p>
</dd>
<dd>
<p>
The <em>asp_tags</em> directive was added in PHP 3.0.4.
</p>
</dd>
<dd>
<p>
The E_* constants have no meaning in <em>php3.ini</em>, but numeric values do.
</p>
</dd>
</dl>
<dl>
<dt><big>Removed</big></dt>
<dd>
<p>
<em>--with-imsp[=DIR]</em> includes IMSP support (DIR is IMSP's include dir and
libimsp.a dir).
</p>
</dd>
<dd>
<p>
<em>--with-mck[=DIR]</em> includes Cybercash MCK support. DIR is the cybercash mck
build directory,
defaults to /usr/src/mck-3.2.0.3-linux
</p>
</dd>
<dd>
<p>
<em>--with-mod-dav=DIR</em> includes DAV support through Apache's mod_dav, DIR
is mod_dav's
installation directory (Apache module version only).
</p>
</dd>
<dd>
<p>
If the <em>sybase.compatability_mode</em> directive is on, this will cause
PHP to automatically assign types to results according to their Sybase
type, instead of treating them all as strings.
</p>
</dd>
</dl>
<h2><a name="changed_behaviour" id="changed_bahaviour">Changed
Behaviour</a></h2>
<dl>
<dt><big>Return values</big></dt>
<dd>
<p>
unset() returns 1.
</p>
</dd>
<dd>
<p>
Multiple calls to setcookie() in the same script will be performed
in reverse order. And put the insert before the delete when trying
to delete one cookie before inserting another.
</p>
</dd>
<dd>
<p>
eval() does not return a value.
</p>
</dd>
</dl>
<dl>
<dt><big>Function parameters</big></dt>
<dd>
<p>
gettype() has a 'user function' return value.
</p>
</dd>
<dd>
<p>
htmlspecialchars() added the second parameter in PHP 3.0.17.
</p>
</dd>
<dd>
<p>
error_log()'s second parameter, message, goes through the debugger.
</p>
</dd>
<dd>
<p>
empty() considers "0" as non-empty, a value that for example may come from an HTML
form.
</p>
</dd>
</dl>
<dl>
<dt><big>Other</big></dt>
<dd>
<p>
Variables are always assigned by value, as there are no references.
</p>
</dd>
<dd>
<p>
Using arrays within HTML forms is limited to single dimensional arrays.
</p>
</dd>
<dd>
<p>
When escaping characters in single quoted strings, an E_NOTICE level error is generated.
</p>
</dd>
<dd>
<p>
Objects lose their class association throughout the process of serialization and unserialization.
</p>
</dd>
<dd>
<p>
Functions must be defined before use. In other words, top to bottom.
</p>
</dd>
<dd>
<p>
Variable number of arguments are not supported.
</p>
</dd>
<dd>
<p>
Return may only be used within function blocks.
</p>
</dd>
</dl>
<h2><a name="miscellaneous"
id="miscellaneous">Miscellaneous</a></h2>
<dl>
<dd>
<p>
The PCRE modifier is not available.
</p>
</dd>
<dd>
<p>
is_uploaded_file() exists as of PHP 3.0.16.
</p>
</dd>
<dd>
<p>
BC Math is enabled by default, --disable-bcmath disables it.
</p>
</dd>
<dd>
<p>
The behaviour of register_globals is always on, because the directive does not exist.
</p>
</dd>
<dd>
<p>
The short_tags() function may be used to enable short tags (<?).
</p>
</dd>
<dd>
<p>
The CGI build has a 'make bench' tool for benchmarking the build. It will likely take
over 30 seconds to run so be sure to allow the appropriate time limit.
</p>
</dd>
<dd>
<p>
SAPI support is not available.
</p>
</dd>
<dd>
<p>
The HTTP PUT method is allowed for saving files, which are handled similarly to POST method
file saves. <em>$PHP_PUT_FILENAME</em> holds the location of the temporary file
created, which
must be moved during the request else it will be deleted.
</p>
</dd>
<dd>
<p>
ODBC is enabled by default, to disable use <em>--disable-unified-odbc</em>
</p>
</dd>
<dd>
<p>
GD is enabled by default, to disable use <em>--without-gd</em>
</p>
</dd>
<dd>
<p>
Installing PHP 3 in Apache:
</p>
<pre>
AddModule mod_php3.c
LoadModule php3_module modules/libphp3.so
AddType application/x-httpd-php3 .php3
</pre>
</dd>
<dd>
<p>
The SESAM extension is specific to PHP 3 and was removed.
</p>
</dd>
</dl>
<h2><a name="migration"
id="migration">Migration</a></h2>
<p>
There are a few migration specific documents involving PHP 3 but due to
their size and structure they were not added to this document.
</p>
<h2><a name="debugger" id="debugger">Debugger</a></h2>
<p>
Information related to the debugger that comes standard with PHP 3 was
not added to this document.
</p>
<h2><a name="internals"
id="internals">Internals</a></h2>
<p>
Information related to the internal workings of PHP 3 that is commonly used
to create extensions was not added to this document.
</p>
<?php site_footer(); ?>