cvs: phpweb / zend-engine-2.php

From: Date: Wed, 25 Jun 2003 18:41:52 +0000
Subject: cvs: phpweb / zend-engine-2.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-18951@lists.php.net to get a copy of this message
goba Wed Jun 25 14:41:52 2003 EDT Modified files: /phpweb zend-engine-2.php Log: Fix a bunch of XHTML validity problems, and tagging inconsistencies Index: phpweb/zend-engine-2.php diff -u phpweb/zend-engine-2.php:1.7 phpweb/zend-engine-2.php:1.8 --- phpweb/zend-engine-2.php:1.7 Wed Jun 25 03:20:52 2003 +++ phpweb/zend-engine-2.php Wed Jun 25 14:41:51 2003 @@ -238,6 +238,7 @@ } } ?>'); ?> +</p> <p> Old code that has no user-defined classes or functions named 'final' should run without modifications. @@ -325,6 +326,7 @@ PHP 5 introduces a standard way of declaring constructor methods by calling them by the name <code>__construct()</code>. </p> <h3>Example</h3> +<p> <?php highlight_string('<?php class BaseClass { function __construct() { @@ -342,6 +344,7 @@ $obj = new BaseClass(); $obj = new SubClass(); ?>'); ?> +</p> <p> For backwards compatibility, if PHP 5 cannot find a <code>__construct()</code> function for a given class, it will search for the old-style constructor function, by the name of the @@ -401,6 +404,7 @@ PHP 5 allows for expressions within constants, however, constants are evaluated at compile time, therefore no constants can be declared that rely on runtime information. </p> +<p> <?php highlight_string('<?php class Bar { const a = 1<<0; @@ -511,6 +515,7 @@ or not an object is an instance of a class, or extends a class, or implements an interface. </p> <h3>Example</h3> +<p> <?php highlight_string('<?php class baseClass { }

« previous php.mirrors (#18951) next »