WS Tab removal

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@293550 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Richard Quadling 2010-01-14 16:21:22 +00:00
parent 687774dcd6
commit aabc5b625c
9 changed files with 52 additions and 52 deletions

View file

@ -566,7 +566,7 @@ echo memory_get_peak_usage(), "\n";
<para>
<programlisting role="shell">
time ~/dev/php/php-5.3dev/sapi/cli/php -dzend.enable_gc=0 \
-dmemory_limit=-1 -n Listing1.php
-dmemory_limit=-1 -n Listing1.php
# and
time ~/dev/php/php-5.3dev/sapi/cli/php -dzend.enable_gc=1 \
-dmemory_limit=-1 -n Listing2.php

View file

@ -81,7 +81,7 @@
</para>
</sect2>
<sect2 xml:id="install.windows.iis7.fastcgi.conf">
<title>Configuring IIS to process PHP requests</title>
<title>Configuring IIS to process PHP requests</title>
<para>
Download and install PHP in accordance to the instructions described in
<link linkend="install.windows.manual">manual installation steps</link>

View file

@ -65,8 +65,8 @@ if (PHP_EXAMPLE != "no") {
<![CDATA[
ARG_ENABLE("counter", "for counter support", "no");
if (PHP_COUNTER != "no") {
EXTENSION("counter", "counter.c");
ADD_SOURCE("counter-util.c");
EXTENSION("counter", "counter.c");
ADD_SOURCE("counter-util.c");
}
]]>
</programlisting>

View file

@ -684,10 +684,10 @@ $counter_four->printCounterInfo();
</methodsynopsis>
<simpara>
<function>Counter::setCounterClass</function> changes the class of objects
returned by <function>Counter::getNamed</function>. The class being set
must not have a public constructor and must be a subclass of
<classname>Counter</classname>. If these conditions are not met, a fatal
error is raised. This is a static function.
returned by <function>Counter::getNamed</function>. The class being set
must not have a public constructor and must be a subclass of
<classname>Counter</classname>. If these conditions are not met, a fatal
error is raised. This is a static function.
</simpara>
</refsect1>
<refsect1 role="parameters">

View file

@ -22,7 +22,7 @@
<table>
<title>Opcode list</title>
<tgroup cols="3">
<thead>
<thead>
<row>
<entry>Number</entry>
<entry>Name</entry>
@ -1697,7 +1697,7 @@ echo 1 xor 2;
*/
$x = 0;
while(1) {
if($x == 0) break;
if($x == 0) break;
}
?>
]]>
@ -1996,14 +1996,14 @@ echo 1^2;
$i=0;
switch ($i) {
case 0:
echo "i=0";
break;
echo "i=0";
break;
case 1:
echo "i=1";
break;
echo "i=1";
break;
case 2:
echo "i=2";
break;
echo "i=2";
break;
}
?>
]]>
@ -2475,9 +2475,9 @@ echo "hello" . "world";
* opcode number: 139
*/
class A {
function methodA(){
echo "hello world";
}
function methodA(){
echo "hello world";
}
}
?>
]]>
@ -2627,13 +2627,13 @@ class A{
class Foo {
public static $my_static = 'foo';
public function staticValue() {
return self::$my_static;
return self::$my_static;
}
}
class Bar extends Foo {
public function fooStatic() {
echo parent::$my_static;
echo parent::$my_static;
}
}
}
@ -3821,11 +3821,11 @@ list($x) = array("X");
*/
$a = 1;
while($a > 0){
$a = 0;
$a = 0;
}
/*$input =array(1,2,3);
while (list($var,) = @each($input)){
unset($$var);
unset($$var);
}*/
/*$a = array(1,2,3);
$x = 'a';
@ -4885,7 +4885,7 @@ $$a = 2;
*/
$a = array(1,2,3);
foreach($a as $num){
print $num;
print $num;
}
?>
]]>
@ -5001,7 +5001,7 @@ foreach($a as $num){
*/
$a = array(1,2,3);
foreach($a as $num){
print $num;
print $num;
}
?>
]]>
@ -5435,7 +5435,7 @@ $a = $x();
*/
class A {
var $num;
function incrementNum(){
function incrementNum(){
$num++;
}
}
@ -5560,7 +5560,7 @@ $obj->incrementNum();
*/
class Foo {
public static function aStaticMethod() {
echo "hello world\n";
echo "hello world\n";
}
}
@ -6385,7 +6385,7 @@ echo (1 >= 2);
* opcode number: 44
*/
for($i=0; $i<3; $i++){
echo "hi";
echo "hi";
}
?>
]]>
@ -6606,7 +6606,7 @@ if($a != 0) echo "foo";
* opcode number: 45
*/
for($i=0; $i<3; $i++){
echo "hi";
echo "hi";
}
?>
]]>
@ -7705,13 +7705,13 @@ function B(){
*/
abstract class fail {
abstract function show();
abstract function show();
}
class pass extends fail {
function show() {
echo "Call to function show()\n";
}
function show() {
echo "Call to function show()\n";
}
}
$t2 = new pass();
@ -8178,7 +8178,7 @@ return 1;
* opcode number: 65
*/
function funcA($msg){
print $msg;
print $msg;
}
funcA('HELLO');
@ -8566,7 +8566,7 @@ echo 1-2;
*/
$a = array(1,2,3);
foreach($a as $num){
print $num;
print $num;
}
?>
]]>
@ -8844,7 +8844,7 @@ profile();
// Run a block of code, throw a tick every 2nd statement
declare(ticks=2) {
for ($x = 0; $x < 10; ++$x) {
echo "hello world\n";
echo "hello world\n";
}
}
?>

View file

@ -38,11 +38,11 @@ extern zend_module_entry counter_module_entry;
#define phpext_counter_ptr &counter_module_entry
#ifdef PHP_WIN32
# define PHP_COUNTER_API __declspec(dllexport)
# define PHP_COUNTER_API __declspec(dllexport)
#elif defined(__GNUC__) && __GNUC__ >= 4
# define PHP_COUNTER_API __attribute__ ((visibility("default")))
# define PHP_COUNTER_API __attribute__ ((visibility("default")))
#else
# define PHP_COUNTER_API
# define PHP_COUNTER_API
#endif
#ifdef ZTS

View file

@ -99,7 +99,7 @@ declare(ticks=1);
// A function called on each tick event
function tick_handler()
{
echo "tick_handler() called\n";
echo "tick_handler() called\n";
}
register_tick_function('tick_handler');
@ -107,8 +107,8 @@ register_tick_function('tick_handler');
$a = 1;
if ($a > 0) {
$a += 2;
print($a);
$a += 2;
print($a);
}
?>
@ -132,10 +132,10 @@ $a = 1;
tick_handler();
if ($a > 0) {
$a += 2;
tick_handler();
print($a);
tick_handler();
$a += 2;
tick_handler();
print($a);
tick_handler();
}
tick_handler();

View file

@ -175,9 +175,9 @@ Hello
<![CDATA[
<?php
class CallableClass {
function __invoke($x) {
var_dump($x);
}
function __invoke($x) {
var_dump($x);
}
}
$obj = new CallableClass;
$obj(5);

View file

@ -332,7 +332,7 @@ EOD
// Static variables
function foo()
{
static $bar = <<<LABEL
static $bar = <<<LABEL
Nothing in here...
LABEL;
}
@ -340,11 +340,11 @@ LABEL;
// Class properties/constants
class foo
{
const BAR = <<<FOOBAR
const BAR = <<<FOOBAR
Constant example
FOOBAR;
public $baz = <<<FOOBAR
public $baz = <<<FOOBAR
Property example
FOOBAR;
}