diff --git a/appendices/comparisons.xml b/appendices/comparisons.xml
index 40bf830b1351..4e1359ab8f9d 100644
--- a/appendices/comparisons.xml
+++ b/appendices/comparisons.xml
@@ -70,7 +70,7 @@
$x = null;
- NULL
+ null
&true;
&true;
&false;
@@ -78,7 +78,7 @@
var $x;
- NULL
+ null
&true;
&true;
&false;
@@ -86,7 +86,7 @@
$x is undefined
- NULL
+ null
&true;
&true;
&false;
diff --git a/appendices/filters.xml b/appendices/filters.xml
index 1eb8fcc16fd6..7ada9f0b4ced 100644
--- a/appendices/filters.xml
+++ b/appendices/filters.xml
@@ -593,8 +593,8 @@ class AES_CBC
}
public static function decryptFile($password, $aes_filename, $out_stream) {
$iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC);
- $hmac_raw = file_get_contents($aes_filename, false, NULL, 0, 32);
- $hmac_salt = file_get_contents($aes_filename, false, NULL, 32, $iv_size);
+ $hmac_raw = file_get_contents($aes_filename, false, null, 0, 32);
+ $hmac_salt = file_get_contents($aes_filename, false, null, 32, $iv_size);
$hmac_calc = self::calculate_hmac_after_32bytes($password, $hmac_salt, $aes_filename);
$fc = fopen($aes_filename, "rb");
$fout = fopen($out_stream, 'wb');
diff --git a/appendices/migration56/openssl.xml b/appendices/migration56/openssl.xml
index 701c3d3e158f..56648ac9b69e 100644
--- a/appendices/migration56/openssl.xml
+++ b/appendices/migration56/openssl.xml
@@ -81,10 +81,10 @@
[
- 'capture_session_meta' => TRUE
+ 'capture_session_meta' => true
]]);
-$html = file_get_contents('https://google.com/', FALSE, $ctx);
+$html = file_get_contents('https://google.com/', false, $ctx);
$meta = stream_context_get_options($ctx)['ssl']['session_meta'];
var_dump($meta);
?>
diff --git a/appendices/migration72/incompatible.xml b/appendices/migration72/incompatible.xml
index 725d7d032cfc..3e86ad6a1288 100644
--- a/appendices/migration72/incompatible.xml
+++ b/appendices/migration72/incompatible.xml
@@ -132,7 +132,7 @@ int(1)
]]>
diff --git a/language/control-structures/include.xml b/language/control-structures/include.xml
index 33a91ebc79dc..4b182c46cb08 100644
--- a/language/control-structures/include.xml
+++ b/language/control-structures/include.xml
@@ -181,7 +181,7 @@ include 'http://www.example.com/file.php?foo=1&bar=2';
Handling Returns: include returns
- FALSE on failure and raises a warning. Successful
+ false on failure and raises a warning. Successful
includes, unless overridden by the included file, return
1. It is possible to execute a return
statement inside an included file in order to terminate processing in
@@ -203,13 +203,13 @@ include 'http://www.example.com/file.php?foo=1&bar=2';
diff --git a/language/functions.xml b/language/functions.xml
index 5188ab626c7d..67f1c210fd7e 100644
--- a/language/functions.xml
+++ b/language/functions.xml
@@ -332,7 +332,7 @@ Making a cup of espresso.
products[$product]) ? $this->products[$product] :
- FALSE;
+ false;
}
public function getTotal($tax)
diff --git a/language/namespaces.xml b/language/namespaces.xml
index e57a88c1dbce..6faf557b8ab8 100644
--- a/language/namespaces.xml
+++ b/language/namespaces.xml
@@ -1531,7 +1531,7 @@ $a = \Bar\FOO; // fatal error, undefined namespace constant Bar\FOO
diff --git a/language/oop5/object-comparison.xml b/language/oop5/object-comparison.xml
index a47afaccf40e..384e5096e66c 100644
--- a/language/oop5/object-comparison.xml
+++ b/language/oop5/object-comparison.xml
@@ -23,9 +23,9 @@
function bool2str($bool)
{
if ($bool === false) {
- return 'FALSE';
+ return 'false';
} else {
- return 'TRUE';
+ return 'true';
}
}
@@ -75,22 +75,22 @@ compareObjects($o, $r);
diff --git a/language/operators/comparison.xml b/language/operators/comparison.xml
index 44c6a491ad4d..da3629342662 100644
--- a/language/operators/comparison.xml
+++ b/language/operators/comparison.xml
@@ -266,11 +266,11 @@ echo $a <=> $b, ' '; // 1
]]>
diff --git a/language/operators/type.xml b/language/operators/type.xml
index 3c6dd538388b..096d1ddf861a 100644
--- a/language/operators/type.xml
+++ b/language/operators/type.xml
@@ -173,12 +173,12 @@ bool(false)
]]>
@@ -201,7 +201,7 @@ PHP Fatal error: instanceof expects an object instance, constant given
]]>
diff --git a/language/predefined/generator/rewind.xml b/language/predefined/generator/rewind.xml
index 3e028cd414f9..654908fa1259 100644
--- a/language/predefined/generator/rewind.xml
+++ b/language/predefined/generator/rewind.xml
@@ -66,7 +66,7 @@ $generator = generator();
$generator->rewind(); // I'm a generator!
// Nothing happens here; the generator is already rewound
-$generator->rewind(); // No output (NULL)
+$generator->rewind(); // No output (null)
// This rewinds the generator to the first yield expression,
// if it's not already there, and iterates over the generator
diff --git a/language/predefined/weakreference.xml b/language/predefined/weakreference.xml
index cf3a2600561c..4d2ed62e66e5 100644
--- a/language/predefined/weakreference.xml
+++ b/language/predefined/weakreference.xml
@@ -95,7 +95,7 @@ NULL
8.4.0
The output of WeakReference::__debugInfo now includes
- the referenced object, or NULL if the reference is no longer
+ the referenced object, or null if the reference is no longer
valid.
diff --git a/language/types/boolean.xml b/language/types/boolean.xml
index 0b196a2f4396..a8bcef6a2f5f 100644
--- a/language/types/boolean.xml
+++ b/language/types/boolean.xml
@@ -19,7 +19,7 @@
]]>
@@ -45,7 +45,7 @@ if ($action == "show_version") {
}
// this is not necessary...
-if ($show_separators == TRUE) {
+if ($show_separators == true) {
echo "
\n";
}
@@ -106,7 +106,7 @@ if ($show_separators) {
- the unit type NULL (including
+ the unit type null (including
unset variables)
diff --git a/language/types/integer.xml b/language/types/integer.xml
index ed45d8511608..7f21d9a789fc 100644
--- a/language/types/integer.xml
+++ b/language/types/integer.xml
@@ -261,7 +261,7 @@ echo (int) ( (0.1+0.7) * 10 ); // echoes 7!
- From NULL
+ From null
&null; is always converted to zero (0).
diff --git a/language/types/null.xml b/language/types/null.xml
index 0acaa42bd8de..febd8b718aa7 100644
--- a/language/types/null.xml
+++ b/language/types/null.xml
@@ -1,7 +1,7 @@
- NULL
+ null
The null type is PHP's unit type, i.e. it has only one value:
@@ -25,7 +25,7 @@
]]>
diff --git a/language/types/type-juggling.xml b/language/types/type-juggling.xml
index 6e7cd80104f3..8126528cd0c1 100644
--- a/language/types/type-juggling.xml
+++ b/language/types/type-juggling.xml
@@ -314,7 +314,7 @@ var_dump($bar);
(string) - cast to string
(array) - cast to array
(object) - cast to object
- (unset) - cast to NULL
+ (unset) - cast to null
@@ -339,7 +339,7 @@ var_dump($bar);
The (unset) cast has been deprecated as of PHP 7.2.0.
Note that the (unset) cast is the same as assigning the
- value NULL to the variable or call.
+ value null to the variable or call.
The (unset) cast is removed as of PHP 8.0.0.
@@ -421,7 +421,7 @@ if ($fst === $str) {
Converting to array
Converting to object
Converting to resource
- Converting to NULL
+ Converting to null
The type comparison tables
diff --git a/reference/apcu/functions/apcu-add.xml b/reference/apcu/functions/apcu-add.xml
index 133dec8b1837..9b4fa5895b84 100644
--- a/reference/apcu/functions/apcu-add.xml
+++ b/reference/apcu/functions/apcu-add.xml
@@ -18,7 +18,7 @@
arrayapcu_add
arrayvalues
- mixedunusedNULL
+ mixedunusednull
intttl0
@@ -86,7 +86,7 @@
&reftitle.returnvalues;
- Returns TRUE if something has effectively been added into the cache, FALSE otherwise.
+ Returns true if something has effectively been added into the cache, false otherwise.
Second syntax returns array with error keys.
diff --git a/reference/apcu/functions/apcu-store.xml b/reference/apcu/functions/apcu-store.xml
index ea3d955572fe..ca415ed3780c 100644
--- a/reference/apcu/functions/apcu-store.xml
+++ b/reference/apcu/functions/apcu-store.xml
@@ -18,7 +18,7 @@
arrayapcu_store
arrayvalues
- mixedunusedNULL
+ mixedunusednull
intttl0
diff --git a/reference/array/functions/array-key-first.xml b/reference/array/functions/array-key-first.xml
index 64cac0f8773b..292814e1ccd2 100644
--- a/reference/array/functions/array-key-first.xml
+++ b/reference/array/functions/array-key-first.xml
@@ -85,7 +85,7 @@ if (!function_exists('array_key_first')) {
foreach($arr as $key => $unused) {
return $key;
}
- return NULL;
+ return null;
}
}
?>
diff --git a/reference/com/constants.xml b/reference/com/constants.xml
index 97ec5dce1810..2ca6a3ade972 100644
--- a/reference/com/constants.xml
+++ b/reference/com/constants.xml
@@ -505,7 +505,7 @@
- Either expression is NULL.
+ Either expression is null.
diff --git a/reference/com/functions/variant-add.xml b/reference/com/functions/variant-add.xml
index ea68c020d048..97750a40f64b 100644
--- a/reference/com/functions/variant-add.xml
+++ b/reference/com/functions/variant-add.xml
@@ -44,8 +44,8 @@
Addition
- Either expression is NULL
- NULL is returned
+ Either expression is null
+ null is returned
Both expressions are empty
diff --git a/reference/com/functions/variant-cmp.xml b/reference/com/functions/variant-cmp.xml
index 2872f9eb7a43..f92c89f2f9dd 100644
--- a/reference/com/functions/variant-cmp.xml
+++ b/reference/com/functions/variant-cmp.xml
@@ -135,7 +135,7 @@
VARCMP_NULL
Either left,
- right or both are &null;
+ right or both are null;
diff --git a/reference/com/functions/variant-div.xml b/reference/com/functions/variant-div.xml
index 142f4db2591e..a0c672d1422a 100644
--- a/reference/com/functions/variant-div.xml
+++ b/reference/com/functions/variant-div.xml
@@ -72,8 +72,8 @@
Division and a double is returned
- Either expression is NULL
- NULL is returned
+ Either expression is null
+ null is returned
right is empty and
diff --git a/reference/com/functions/variant-idiv.xml b/reference/com/functions/variant-idiv.xml
index 9add5f229483..7f92859e4534 100644
--- a/reference/com/functions/variant-idiv.xml
+++ b/reference/com/functions/variant-idiv.xml
@@ -72,8 +72,8 @@
Division
- Either expression is NULL
- NULL is returned
+ Either expression is null
+ null is returned
Both expressions are empty
diff --git a/reference/com/functions/variant-mul.xml b/reference/com/functions/variant-mul.xml
index 8fa286edded4..5980fa7e2213 100644
--- a/reference/com/functions/variant-mul.xml
+++ b/reference/com/functions/variant-mul.xml
@@ -72,8 +72,8 @@
Multiplication
- Either expression is NULL
- NULL is returned
+ Either expression is null
+ null is returned
Both expressions are empty
diff --git a/reference/com/functions/variant-sub.xml b/reference/com/functions/variant-sub.xml
index abd3d129bbc3..373a4d295a38 100644
--- a/reference/com/functions/variant-sub.xml
+++ b/reference/com/functions/variant-sub.xml
@@ -71,8 +71,8 @@
Subtraction
- Either expression is NULL
- NULL is returned
+ Either expression is null
+ null is returned
Both expressions are empty
diff --git a/reference/cubrid/cubridmysql/cubrid-fetch-assoc.xml b/reference/cubrid/cubridmysql/cubrid-fetch-assoc.xml
index 3deb55b9a415..240cbc9c8ae0 100644
--- a/reference/cubrid/cubridmysql/cubrid-fetch-assoc.xml
+++ b/reference/cubrid/cubridmysql/cubrid-fetch-assoc.xml
@@ -17,7 +17,7 @@
This function returns the associative array, that corresponds to the
fetched row, and then moves the internal data pointer ahead, or returns
- FALSE when the end is reached.
+ false when the end is reached.
@@ -44,7 +44,7 @@
Associative array, when process is successful.
- &false;, when there are no more rows; NULL, when process is unsuccessful.
+ &false;, when there are no more rows; null, when process is unsuccessful.
diff --git a/reference/cubrid/cubridmysql/cubrid-fetch-lengths.xml b/reference/cubrid/cubridmysql/cubrid-fetch-lengths.xml
index b2130c2aaecc..519778cb27d3 100644
--- a/reference/cubrid/cubridmysql/cubrid-fetch-lengths.xml
+++ b/reference/cubrid/cubridmysql/cubrid-fetch-lengths.xml
@@ -15,7 +15,7 @@
This function returns a numeric array with the lengths of the values of
- each field from the current row of the result set or it returns FALSE on
+ each field from the current row of the result set or it returns false on
failure.
diff --git a/reference/cubrid/cubridmysql/cubrid-fetch-object.xml b/reference/cubrid/cubridmysql/cubrid-fetch-object.xml
index 97e84c56d3bd..f431094e60d1 100644
--- a/reference/cubrid/cubridmysql/cubrid-fetch-object.xml
+++ b/reference/cubrid/cubridmysql/cubrid-fetch-object.xml
@@ -69,7 +69,7 @@
An object, when process is successful.
- &false;, when there are no more rows; NULL, when process is unsuccessful.
+ &false;, when there are no more rows; null, when process is unsuccessful.
diff --git a/reference/cubrid/cubridmysql/cubrid-fetch-row.xml b/reference/cubrid/cubridmysql/cubrid-fetch-row.xml
index a69118dfe46c..2ca87c2c086a 100644
--- a/reference/cubrid/cubridmysql/cubrid-fetch-row.xml
+++ b/reference/cubrid/cubridmysql/cubrid-fetch-row.xml
@@ -44,7 +44,7 @@
A numerical array, when process is successful.
- &false;, when there are no more rows; NULL, when process is unsuccessful.
+ &false;, when there are no more rows; null, when process is unsuccessful.
diff --git a/reference/cubrid/cubridmysql/cubrid-field-len.xml b/reference/cubrid/cubridmysql/cubrid-field-len.xml
index 909d308b5d67..da24f524e4a9 100644
--- a/reference/cubrid/cubridmysql/cubrid-field-len.xml
+++ b/reference/cubrid/cubridmysql/cubrid-field-len.xml
@@ -15,7 +15,7 @@
intfield_offset
- This function returns the maximum length of the specified field on success, or it returns FALSE on failure.
+ This function returns the maximum length of the specified field on success, or it returns false on failure.
diff --git a/reference/cubrid/cubridmysql/cubrid-field-name.xml b/reference/cubrid/cubridmysql/cubrid-field-name.xml
index ab944aceaa1a..3d17aba85b97 100644
--- a/reference/cubrid/cubridmysql/cubrid-field-name.xml
+++ b/reference/cubrid/cubridmysql/cubrid-field-name.xml
@@ -16,7 +16,7 @@
This function returns the name of the specified field index on success or
- it returns FALSE on failure.
+ it returns false on failure.
diff --git a/reference/cubrid/cubridmysql/cubrid-field-seek.xml b/reference/cubrid/cubridmysql/cubrid-field-seek.xml
index 4166f722448c..2f90f5dab2a8 100644
--- a/reference/cubrid/cubridmysql/cubrid-field-seek.xml
+++ b/reference/cubrid/cubridmysql/cubrid-field-seek.xml
@@ -17,7 +17,7 @@
This function moves the result set cursor to the specified field offset.
This offset is used by cubrid_fetch_field if it
- doesn't include a field offset. It returns TRUE on success or FALSE on
+ doesn't include a field offset. It returns true on success or false on
failure.
diff --git a/reference/cubrid/cubridmysql/cubrid-num-fields.xml b/reference/cubrid/cubridmysql/cubrid-num-fields.xml
index 94c6d48add0e..9a97328b46da 100644
--- a/reference/cubrid/cubridmysql/cubrid-num-fields.xml
+++ b/reference/cubrid/cubridmysql/cubrid-num-fields.xml
@@ -15,7 +15,7 @@
This function returns the number of columns in the result set, on success,
- or it returns FALSE on failure.
+ or it returns false on failure.
diff --git a/reference/cubrid/cubridmysql/cubrid-result.xml b/reference/cubrid/cubridmysql/cubrid-result.xml
index 33fb351970d5..8571252b746c 100644
--- a/reference/cubrid/cubridmysql/cubrid-result.xml
+++ b/reference/cubrid/cubridmysql/cubrid-result.xml
@@ -50,7 +50,7 @@
&reftitle.returnvalues;
- Value of a specific field, on success (NULL if value if null).
+ Value of a specific field on success; null, when process is unsuccessful.
&false; on failure.
diff --git a/reference/cubrid/functions/cubrid-col-get.xml b/reference/cubrid/functions/cubrid-col-get.xml
index d72232ebcc44..fffb47a3913a 100644
--- a/reference/cubrid/functions/cubrid-col-get.xml
+++ b/reference/cubrid/functions/cubrid-col-get.xml
@@ -50,7 +50,7 @@
&false; (to distinguish the error from the situation of attribute having
- empty collection or NULL, in case of error, a warning message is shown; in
+ empty collection or null, in case of error, a warning message is shown; in
such case you can check the error by using
cubrid_error_code), when process is unsuccessful.
diff --git a/reference/cubrid/functions/cubrid-commit.xml b/reference/cubrid/functions/cubrid-commit.xml
index cccab93325e6..4457196d4550 100644
--- a/reference/cubrid/functions/cubrid-commit.xml
+++ b/reference/cubrid/functions/cubrid-commit.xml
@@ -79,7 +79,7 @@ $req = cubrid_prepare($conn, "INSERT INTO publishers VALUES(?, ?, ?, ?, ?)");
$id_list = array("P01", "P02", "P03", "P04");
$name_list = array("Abatis Publishers", "Core Dump Books", "Schadenfreude Press", "Tenterhooks Press");
$city_list = array("New York", "San Francisco", "Hamburg", "Berkeley");
-$state_list = array("NY", "CA", NULL, "CA");
+$state_list = array("NY", "CA", null, "CA");
$country_list = array("USA", "USA", "Germany", "USA");
for ($i = 0, $size = count($id_list); $i < $size; $i++) {
diff --git a/reference/cubrid/functions/cubrid-fetch.xml b/reference/cubrid/functions/cubrid-fetch.xml
index bef4c724d895..2a7d1d927a67 100644
--- a/reference/cubrid/functions/cubrid-fetch.xml
+++ b/reference/cubrid/functions/cubrid-fetch.xml
@@ -40,7 +40,7 @@
&reftitle.returnvalues;
Result array or object, when process is successful.
- &false;, when there are no more rows; NULL, when process is unsuccessful.
+ &false;, when there are no more rows; null, when process is unsuccessful.
The result can be received either as an array or as an object, and you can decide which data type to use by setting the type argument. The type variable can be set to one of the following values:
CUBRID_NUM : Numerical array (0-based)
diff --git a/reference/cubrid/functions/cubrid-get.xml b/reference/cubrid/functions/cubrid-get.xml
index aedf8abe7169..a91fd3ecb85a 100644
--- a/reference/cubrid/functions/cubrid-get.xml
+++ b/reference/cubrid/functions/cubrid-get.xml
@@ -56,8 +56,8 @@
attributes are received in array form.
- &false; when process is unsuccessful or result is NULL (If error occurs to
- distinguish empty string from NULL, then it prints the warning message.
+ &false; when process is unsuccessful or result is null (If error occurs to
+ distinguish empty string from null, then it prints the warning message.
You can check the error by using cubrid_error_code)
diff --git a/reference/cubrid/functions/cubrid-insert-id.xml b/reference/cubrid/functions/cubrid-insert-id.xml
index b006e1ab9f73..a75daeb667fd 100644
--- a/reference/cubrid/functions/cubrid-insert-id.xml
+++ b/reference/cubrid/functions/cubrid-insert-id.xml
@@ -17,7 +17,7 @@
The cubrid_insert_id function retrieves the ID
generated for the AUTO_INCREMENT column which is updated by the previous
INSERT query. It returns 0 if the previous query does not generate new
- rows, or FALSE on failure.
+ rows, or false on failure.
diff --git a/reference/cubrid/functions/cubrid-rollback.xml b/reference/cubrid/functions/cubrid-rollback.xml
index a21c70499ee0..0144e4865c8a 100644
--- a/reference/cubrid/functions/cubrid-rollback.xml
+++ b/reference/cubrid/functions/cubrid-rollback.xml
@@ -78,7 +78,7 @@ $req = cubrid_prepare($conn, "INSERT INTO publishers VALUES(?, ?, ?, ?, ?)");
$id_list = array("P01", "P02", "P03", "P04");
$name_list = array("Abatis Publishers", "Core Dump Books", "Schadenfreude Press", "Tenterhooks Press");
$city_list = array("New York", "San Francisco", "Hamburg", "Berkeley");
-$state_list = array("NY", "CA", NULL, "CA");
+$state_list = array("NY", "CA", null, "CA");
$country_list = array("USA", "USA", "Germany", "USA");
for ($i = 0, $size = count($id_list); $i < $size; $i++) {
diff --git a/reference/curl/constants_curl_getinfo.xml b/reference/curl/constants_curl_getinfo.xml
index 115537120642..676a7854b928 100644
--- a/reference/curl/constants_curl_getinfo.xml
+++ b/reference/curl/constants_curl_getinfo.xml
@@ -147,7 +147,7 @@
Content-Type of the requested document.
- NULL indicates server did not send valid Content-Type header
+ null indicates server did not send valid Content-Type header
diff --git a/reference/eio/examples.xml b/reference/eio/examples.xml
index c9da451b2ee7..f3ed437a3044 100644
--- a/reference/eio/examples.xml
+++ b/reference/eio/examples.xml
@@ -167,8 +167,8 @@ function my_grp_file_read_callback($data, $result) {
$grp = eio_grp("my_grp_done", "my_grp_data");
// Create eio_open() request and add it to the group
-$req = eio_open($temp_filename, EIO_O_RDWR | EIO_O_APPEND , NULL,
- EIO_PRI_DEFAULT, "my_grp_file_opened_callback", NULL);
+$req = eio_open($temp_filename, EIO_O_RDWR | EIO_O_APPEND , null,
+ EIO_PRI_DEFAULT, "my_grp_file_opened_callback", null);
eio_grp_add($grp, $req);
var_dump($grp);
diff --git a/reference/eio/functions/eio-busy.xml b/reference/eio/functions/eio-busy.xml
index 96a162124ee0..22da3417413f 100644
--- a/reference/eio/functions/eio-busy.xml
+++ b/reference/eio/functions/eio-busy.xml
@@ -16,9 +16,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
eio_busy artificially increases load taking
diff --git a/reference/eio/functions/eio-chmod.xml b/reference/eio/functions/eio-chmod.xml
index d67159e03785..d2ba42af4b90 100644
--- a/reference/eio/functions/eio-chmod.xml
+++ b/reference/eio/functions/eio-chmod.xml
@@ -16,9 +16,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
eio_chmod changes file, or directory permissions. The
diff --git a/reference/eio/functions/eio-chown.xml b/reference/eio/functions/eio-chown.xml
index 9909c9f668fe..7ac9d4d4d397 100644
--- a/reference/eio/functions/eio-chown.xml
+++ b/reference/eio/functions/eio-chown.xml
@@ -18,9 +18,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
Changes file, or directory permissions.
diff --git a/reference/eio/functions/eio-close.xml b/reference/eio/functions/eio-close.xml
index 0c15afe38605..930374b94386 100644
--- a/reference/eio/functions/eio-close.xml
+++ b/reference/eio/functions/eio-close.xml
@@ -15,9 +15,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
eio_close closes file specified by
diff --git a/reference/eio/functions/eio-custom.xml b/reference/eio/functions/eio-custom.xml
index d833642d8abd..7324799490f9 100644
--- a/reference/eio/functions/eio-custom.xml
+++ b/reference/eio/functions/eio-custom.xml
@@ -15,7 +15,7 @@
intpri
callablecallback
mixeddataNULL
+ choice="opt">mixeddatanull
eio_custom executes custom function specified by
diff --git a/reference/eio/functions/eio-dup2.xml b/reference/eio/functions/eio-dup2.xml
index c68f970d316b..bbb1a92b05df 100644
--- a/reference/eio/functions/eio-dup2.xml
+++ b/reference/eio/functions/eio-dup2.xml
@@ -16,9 +16,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
diff --git a/reference/eio/functions/eio-fallocate.xml b/reference/eio/functions/eio-fallocate.xml
index ad42c0c6584e..552ef5ea517c 100644
--- a/reference/eio/functions/eio-fallocate.xml
+++ b/reference/eio/functions/eio-fallocate.xml
@@ -19,9 +19,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
diff --git a/reference/eio/functions/eio-fchmod.xml b/reference/eio/functions/eio-fchmod.xml
index a129e6f55de2..c4f9f454fce3 100644
--- a/reference/eio/functions/eio-fchmod.xml
+++ b/reference/eio/functions/eio-fchmod.xml
@@ -16,9 +16,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
eio_fchmod changes permissions for the file specified
diff --git a/reference/eio/functions/eio-fchown.xml b/reference/eio/functions/eio-fchown.xml
index c037e9b7929a..f58df26a9868 100644
--- a/reference/eio/functions/eio-fchown.xml
+++ b/reference/eio/functions/eio-fchown.xml
@@ -17,9 +17,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
eio_fchown changes ownership of the file specified by
diff --git a/reference/eio/functions/eio-fdatasync.xml b/reference/eio/functions/eio-fdatasync.xml
index 6f3d7f6d14d4..16d3ab255cc2 100644
--- a/reference/eio/functions/eio-fdatasync.xml
+++ b/reference/eio/functions/eio-fdatasync.xml
@@ -15,9 +15,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
eio_fdatasync synchronizes a file's in-core state with storage device.
diff --git a/reference/eio/functions/eio-fstat.xml b/reference/eio/functions/eio-fstat.xml
index 71a73b6a39a2..2c1883da876a 100644
--- a/reference/eio/functions/eio-fstat.xml
+++ b/reference/eio/functions/eio-fstat.xml
@@ -103,7 +103,7 @@ function my_open_cb($data, $result) {
}
// Open temporary file
-eio_open($tmp_filename, EIO_O_RDONLY, NULL, EIO_PRI_DEFAULT,
+eio_open($tmp_filename, EIO_O_RDONLY, null, EIO_PRI_DEFAULT,
"my_open_cb", $tmp_filename);
eio_event_loop();
?>
diff --git a/reference/eio/functions/eio-fsync.xml b/reference/eio/functions/eio-fsync.xml
index b099e16883a9..06cf15a2273b 100644
--- a/reference/eio/functions/eio-fsync.xml
+++ b/reference/eio/functions/eio-fsync.xml
@@ -15,9 +15,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
Synchronize a file's in-core state with storage device
diff --git a/reference/eio/functions/eio-ftruncate.xml b/reference/eio/functions/eio-ftruncate.xml
index f38be23666a5..7cdcc8376af4 100644
--- a/reference/eio/functions/eio-ftruncate.xml
+++ b/reference/eio/functions/eio-ftruncate.xml
@@ -16,9 +16,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
eio_ftruncate causes a regular file referenced by
diff --git a/reference/eio/functions/eio-futime.xml b/reference/eio/functions/eio-futime.xml
index 70cc60ece017..5d7970f23b7e 100644
--- a/reference/eio/functions/eio-futime.xml
+++ b/reference/eio/functions/eio-futime.xml
@@ -17,9 +17,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
diff --git a/reference/eio/functions/eio-grp-add.xml b/reference/eio/functions/eio-grp-add.xml
index 144ed69c5029..7685036bd5f0 100644
--- a/reference/eio/functions/eio-grp-add.xml
+++ b/reference/eio/functions/eio-grp-add.xml
@@ -103,8 +103,8 @@ $grp = eio_grp("my_grp_done", $temp_filename);
var_dump($grp);
// Create eio_open() request and add it to the group
-$req = eio_open($temp_filename, EIO_O_RDWR | EIO_O_APPEND , NULL,
- EIO_PRI_DEFAULT, "my_grp_file_opened_callback", NULL);
+$req = eio_open($temp_filename, EIO_O_RDWR | EIO_O_APPEND , null,
+ EIO_PRI_DEFAULT, "my_grp_file_opened_callback", null);
eio_grp_add($grp, $req);
// Process requests
diff --git a/reference/eio/functions/eio-grp.xml b/reference/eio/functions/eio-grp.xml
index bc70b58bec9d..d5e42bc9aa21 100644
--- a/reference/eio/functions/eio-grp.xml
+++ b/reference/eio/functions/eio-grp.xml
@@ -13,7 +13,7 @@
resourceeio_grp
callablecallback
stringdataNULL
+ choice="opt">stringdatanull
eio_grp creates a request group.
@@ -59,7 +59,7 @@ $temp_filename = dirname(__FILE__) ."/eio-file.tmp";
$fp = fopen($temp_filename, "w");
fwrite($fp, "some data");
fclose($fp);
-$my_file_fd = NULL;
+$my_file_fd = null;
/* Is called when the group requests are done */
function my_grp_done($data, $result) {
@@ -95,8 +95,8 @@ function my_grp_file_read_callback($data, $result) {
$grp = eio_grp("my_grp_done", $temp_filename);
// Create request
-$req = eio_open($temp_filename, EIO_O_RDWR | EIO_O_APPEND , NULL,
- EIO_PRI_DEFAULT, "my_grp_file_opened_callback", NULL);
+$req = eio_open($temp_filename, EIO_O_RDWR | EIO_O_APPEND , null,
+ EIO_PRI_DEFAULT, "my_grp_file_opened_callback", null);
// Add request to the group
eio_grp_add($grp, $req);
diff --git a/reference/eio/functions/eio-link.xml b/reference/eio/functions/eio-link.xml
index 5df453051258..81c9af52101c 100644
--- a/reference/eio/functions/eio-link.xml
+++ b/reference/eio/functions/eio-link.xml
@@ -16,9 +16,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
eio_link creates a hardlink
@@ -101,7 +101,7 @@ function my_symlink_cb($data, $result) {
global $link, $filename;
var_dump(file_exists($data) && is_link($data));
- if (!eio_readlink($data, EIO_PRI_DEFAULT, "my_readlink_cb", NULL)) {
+ if (!eio_readlink($data, EIO_PRI_DEFAULT, "my_readlink_cb", null)) {
@unlink($link);
@unlink($filename);
}
diff --git a/reference/eio/functions/eio-lstat.xml b/reference/eio/functions/eio-lstat.xml
index c1c008027489..cd50f0aac54b 100644
--- a/reference/eio/functions/eio-lstat.xml
+++ b/reference/eio/functions/eio-lstat.xml
@@ -15,7 +15,7 @@
intpri
callablecallback
mixeddataNULL
+ choice="opt">mixeddatanull
eio_lstat returns file status information in
@@ -88,7 +88,7 @@ function my_open_cb($data, $result) {
}
eio_lstat($tmp_filename, EIO_PRI_DEFAULT, "my_res_cb", "eio_lstat");
-eio_open($tmp_filename, EIO_O_RDONLY, NULL,
+eio_open($tmp_filename, EIO_O_RDONLY, null,
EIO_PRI_DEFAULT, "my_open_cb", $tmp_filename);
eio_event_loop();
?>
diff --git a/reference/eio/functions/eio-mkdir.xml b/reference/eio/functions/eio-mkdir.xml
index eb87f645784e..b1b9cacf1d92 100644
--- a/reference/eio/functions/eio-mkdir.xml
+++ b/reference/eio/functions/eio-mkdir.xml
@@ -16,9 +16,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
eio_mkdir creates directory with specified access
diff --git a/reference/eio/functions/eio-mknod.xml b/reference/eio/functions/eio-mknod.xml
index 40c4165a700a..ca93401d1ff6 100644
--- a/reference/eio/functions/eio-mknod.xml
+++ b/reference/eio/functions/eio-mknod.xml
@@ -17,9 +17,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
diff --git a/reference/eio/functions/eio-nop.xml b/reference/eio/functions/eio-nop.xml
index 46f887eb339d..e308a44002e7 100644
--- a/reference/eio/functions/eio-nop.xml
+++ b/reference/eio/functions/eio-nop.xml
@@ -14,9 +14,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
eio_nop does nothing, except go through the whole
diff --git a/reference/eio/functions/eio-open.xml b/reference/eio/functions/eio-open.xml
index e3c6bb4f0bb0..d8b99270cc87 100644
--- a/reference/eio/functions/eio-open.xml
+++ b/reference/eio/functions/eio-open.xml
@@ -17,7 +17,7 @@
intpri
callablecallback
mixeddataNULL
+ choice="opt">mixeddatanull
eio_open opens file specified by
diff --git a/reference/eio/functions/eio-read.xml b/reference/eio/functions/eio-read.xml
index fb854bee85d3..5cf9e1275a9e 100644
--- a/reference/eio/functions/eio-read.xml
+++ b/reference/eio/functions/eio-read.xml
@@ -17,7 +17,7 @@
intpri
callablecallback
mixeddataNULL
+ choice="opt">mixeddatanull
eio_read reads up to length
@@ -129,7 +129,7 @@ function my_file_opened_callback($data, $result) {
}
// Open the file for reading and writing
-eio_open($temp_filename, EIO_O_RDWR, NULL,
+eio_open($temp_filename, EIO_O_RDWR, null,
EIO_PRI_DEFAULT, "my_file_opened_callback", $temp_filename);
eio_event_loop();
?>
diff --git a/reference/eio/functions/eio-readahead.xml b/reference/eio/functions/eio-readahead.xml
index a16dfde1c75b..6f3a832282b1 100644
--- a/reference/eio/functions/eio-readahead.xml
+++ b/reference/eio/functions/eio-readahead.xml
@@ -17,9 +17,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
eio_readahead populates the page cache with data from a file so that subsequent reads from
diff --git a/reference/eio/functions/eio-readdir.xml b/reference/eio/functions/eio-readdir.xml
index 23c4a90c2914..f31bac92fccc 100644
--- a/reference/eio/functions/eio-readdir.xml
+++ b/reference/eio/functions/eio-readdir.xml
@@ -16,7 +16,7 @@
intpri
callablecallback
stringdataNULL
+ choice="opt">stringdatanull
Reads through a whole directory(via the opendir, readdir and
diff --git a/reference/eio/functions/eio-readlink.xml b/reference/eio/functions/eio-readlink.xml
index b9a52f372253..09cda0faaa88 100644
--- a/reference/eio/functions/eio-readlink.xml
+++ b/reference/eio/functions/eio-readlink.xml
@@ -15,7 +15,7 @@
intpri
callablecallback
mixeddataNULL
+ choice="opt">mixeddatanull
@@ -88,7 +88,7 @@ function my_symlink_cb($data, $result) {
global $link, $filename;
var_dump(file_exists($data) && is_link($data));
- if (!eio_readlink($data, EIO_PRI_DEFAULT, "my_readlink_cb", NULL)) {
+ if (!eio_readlink($data, EIO_PRI_DEFAULT, "my_readlink_cb", null)) {
@unlink($link);
@unlink($filename);
}
diff --git a/reference/eio/functions/eio-realpath.xml b/reference/eio/functions/eio-realpath.xml
index 2ee1b1a877a0..562becab2b8f 100644
--- a/reference/eio/functions/eio-realpath.xml
+++ b/reference/eio/functions/eio-realpath.xml
@@ -15,7 +15,7 @@
intpri
callablecallback
stringdataNULL
+ choice="opt">stringdatanull
eio_realpath returns the canonicalized absolute
diff --git a/reference/eio/functions/eio-rename.xml b/reference/eio/functions/eio-rename.xml
index 8e0d88e6b48c..f93b0205d747 100644
--- a/reference/eio/functions/eio-rename.xml
+++ b/reference/eio/functions/eio-rename.xml
@@ -16,9 +16,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
eio_rename renames or moves a file to new location.
diff --git a/reference/eio/functions/eio-rmdir.xml b/reference/eio/functions/eio-rmdir.xml
index 6af9e4ae9a6b..b81d9d143a6a 100644
--- a/reference/eio/functions/eio-rmdir.xml
+++ b/reference/eio/functions/eio-rmdir.xml
@@ -15,9 +15,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
eio_rmdir removes a directory.
diff --git a/reference/eio/functions/eio-seek.xml b/reference/eio/functions/eio-seek.xml
index 2a81caef6d2f..1f0e938f22cd 100644
--- a/reference/eio/functions/eio-seek.xml
+++ b/reference/eio/functions/eio-seek.xml
@@ -17,9 +17,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
eio_seek repositions the offset of the open file associated with
diff --git a/reference/eio/functions/eio-stat.xml b/reference/eio/functions/eio-stat.xml
index e1f25d1c07b7..c4e671c7ddbd 100644
--- a/reference/eio/functions/eio-stat.xml
+++ b/reference/eio/functions/eio-stat.xml
@@ -15,7 +15,7 @@
intpri
callablecallback
mixeddataNULL
+ choice="opt">mixeddatanull
eio_stat returns file status information in
@@ -90,7 +90,7 @@ function my_open_cb($data, $result) {
}
eio_stat($tmp_filename, EIO_PRI_DEFAULT, "my_res_cb", "eio_stat");
-eio_open($tmp_filename, EIO_O_RDONLY, NULL,
+eio_open($tmp_filename, EIO_O_RDONLY, null,
EIO_PRI_DEFAULT, "my_open_cb", $tmp_filename);
eio_event_loop();
?>
diff --git a/reference/eio/functions/eio-symlink.xml b/reference/eio/functions/eio-symlink.xml
index a929345ebc68..4465dcbba283 100644
--- a/reference/eio/functions/eio-symlink.xml
+++ b/reference/eio/functions/eio-symlink.xml
@@ -16,9 +16,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
@@ -92,7 +92,7 @@ function my_symlink_cb($data, $result) {
global $link, $filename;
var_dump(file_exists($data) && is_link($data));
- if (!eio_readlink($data, EIO_PRI_DEFAULT, "my_readlink_cb", NULL)) {
+ if (!eio_readlink($data, EIO_PRI_DEFAULT, "my_readlink_cb", null)) {
@unlink($link);
@unlink($filename);
}
diff --git a/reference/eio/functions/eio-sync-file-range.xml b/reference/eio/functions/eio-sync-file-range.xml
index 186b1c9ab7cb..36fb76671d08 100644
--- a/reference/eio/functions/eio-sync-file-range.xml
+++ b/reference/eio/functions/eio-sync-file-range.xml
@@ -18,9 +18,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
eio_sync_file_range permits fine control when synchronizing the open file referred to by the file
diff --git a/reference/eio/functions/eio-sync.xml b/reference/eio/functions/eio-sync.xml
index 124dda28ead3..81eec74b774c 100644
--- a/reference/eio/functions/eio-sync.xml
+++ b/reference/eio/functions/eio-sync.xml
@@ -12,8 +12,8 @@
resourceeio_sync
intpriEIO_PRI_DEFAULT
- callablecallbackNULL
- mixeddataNULL
+ callablecallbacknull
+ mixeddatanull
diff --git a/reference/eio/functions/eio-syncfs.xml b/reference/eio/functions/eio-syncfs.xml
index 2db4610a155f..717990de7243 100644
--- a/reference/eio/functions/eio-syncfs.xml
+++ b/reference/eio/functions/eio-syncfs.xml
@@ -15,9 +15,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
diff --git a/reference/eio/functions/eio-truncate.xml b/reference/eio/functions/eio-truncate.xml
index 0f0ad4da2419..5b571061f8b1 100644
--- a/reference/eio/functions/eio-truncate.xml
+++ b/reference/eio/functions/eio-truncate.xml
@@ -16,9 +16,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
eio_truncate causes the regular file named by path to be truncated to
diff --git a/reference/eio/functions/eio-unlink.xml b/reference/eio/functions/eio-unlink.xml
index 043ea2e0a8e1..757483f9e744 100644
--- a/reference/eio/functions/eio-unlink.xml
+++ b/reference/eio/functions/eio-unlink.xml
@@ -15,9 +15,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
eio_unlink deletes a name from the file system.
diff --git a/reference/eio/functions/eio-utime.xml b/reference/eio/functions/eio-utime.xml
index e31289773579..25a1bdb3a03d 100644
--- a/reference/eio/functions/eio-utime.xml
+++ b/reference/eio/functions/eio-utime.xml
@@ -17,9 +17,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
diff --git a/reference/eio/functions/eio-write.xml b/reference/eio/functions/eio-write.xml
index 98323450ad1b..1f86578e0c96 100644
--- a/reference/eio/functions/eio-write.xml
+++ b/reference/eio/functions/eio-write.xml
@@ -18,9 +18,9 @@
intpriEIO_PRI_DEFAULT
callablecallbackNULL
+ choice="opt">callablecallbacknull
mixeddataNULL
+ choice="opt">mixeddatanull
eio_write writes up to length
diff --git a/reference/errorfunc/examples.xml b/reference/errorfunc/examples.xml
index 7ecf62c63d0f..bfb546e3a6d4 100644
--- a/reference/errorfunc/examples.xml
+++ b/reference/errorfunc/examples.xml
@@ -71,12 +71,12 @@ function distance($vect1, $vect2)
{
if (!is_array($vect1) || !is_array($vect2)) {
trigger_error("Incorrect parameters, arrays expected", E_USER_ERROR);
- return NULL;
+ return null;
}
if (count($vect1) != count($vect2)) {
trigger_error("Vectors need to be of the same size", E_USER_ERROR);
- return NULL;
+ return null;
}
for ($i=0; $i
mixed
data
- NULL
+ null
diff --git a/reference/ev/evloop/defaultloop.xml b/reference/ev/evloop/defaultloop.xml
index 18b9e5e611bc..4d8727e5c4fd 100644
--- a/reference/ev/evloop/defaultloop.xml
+++ b/reference/ev/evloop/defaultloop.xml
@@ -22,7 +22,7 @@
choice="opt">
mixed
data
- NULL
+ null
diff --git a/reference/ev/evperiodic/construct.xml b/reference/ev/evperiodic/construct.xml
index 31dd5d56a4ed..cda7f4535871 100644
--- a/reference/ev/evperiodic/construct.xml
+++ b/reference/ev/evperiodic/construct.xml
@@ -145,7 +145,7 @@ Ev::run();
diff --git a/reference/ev/evwatcher/keepalive.xml b/reference/ev/evwatcher/keepalive.xml
index 855aaf37ae91..bd254538a146 100644
--- a/reference/ev/evwatcher/keepalive.xml
+++ b/reference/ev/evwatcher/keepalive.xml
@@ -76,7 +76,7 @@
keepalive(FALSE);
+$udp_watcher->keepalive(false);
?>
]]>
diff --git a/reference/ev/examples.xml b/reference/ev/examples.xml
index 2a2e3cd69c3a..9d45eb4931f2 100644
--- a/reference/ev/examples.xml
+++ b/reference/ev/examples.xml
@@ -84,7 +84,7 @@ END
stop();
printf("Process %d exited with status %d\n", $w->rpid, $w->rstatus);
diff --git a/reference/ev/periodic-modes.xml b/reference/ev/periodic-modes.xml
index fdc04a9326a7..7e3926c10fe9 100644
--- a/reference/ev/periodic-modes.xml
+++ b/reference/ev/periodic-modes.xml
@@ -53,7 +53,7 @@
diff --git a/reference/ev/watcher-callbacks.xml b/reference/ev/watcher-callbacks.xml
index e5ee8cc1a15f..96968afd598e 100644
--- a/reference/ev/watcher-callbacks.xml
+++ b/reference/ev/watcher-callbacks.xml
@@ -27,13 +27,13 @@
choice="opt">
object
watcher
- NULL
+ null
int
revents
- NULL
+ null
diff --git a/reference/event/event/construct.xml b/reference/event/event/construct.xml
index 0b3494f67a7a..33f6039d8087 100644
--- a/reference/event/event/construct.xml
+++ b/reference/event/event/construct.xml
@@ -30,7 +30,7 @@
choice="opt">
mixed
arg
- NULL
+ null
diff --git a/reference/event/eventbuffer/search.xml b/reference/event/eventbuffer/search.xml
index 844e3f8b3757..b3017c058ce0 100644
--- a/reference/event/eventbuffer/search.xml
+++ b/reference/event/eventbuffer/search.xml
@@ -102,7 +102,7 @@ function count_instances($buf, $str) {
while (1) {
$p = $buf->search($str, $p);
- if ($p === FALSE) {
+ if ($p === false) {
break;
}
++$total;
diff --git a/reference/event/eventbufferevent/connect.xml b/reference/event/eventbufferevent/connect.xml
index 7595999cee65..7f2a8323b5ad 100644
--- a/reference/event/eventbufferevent/connect.xml
+++ b/reference/event/eventbufferevent/connect.xml
@@ -111,14 +111,14 @@ function eventcb($bev, $events, $base) {
$base = new EventBase();
echo "step 1\n";
-$bev = new EventBufferEvent($base, /* use internal socket */ NULL,
+$bev = new EventBufferEvent($base, /* use internal socket */ null,
EventBufferEvent::OPT_CLOSE_ON_FREE | EventBufferEvent::OPT_DEFER_CALLBACKS);
if (!$bev) {
exit("Failed creating bufferevent socket\n");
}
echo "step 2\n";
-$bev->setCallbacks("readcb", /* writecb */ NULL, "eventcb", $base);
+$bev->setCallbacks("readcb", /* writecb */ null, "eventcb", $base);
$bev->enable(Event::READ | Event::WRITE);
echo "step 3\n";
@@ -172,8 +172,8 @@ class MyUnixSocketClient {
function __construct($base, $sock_path) {
$this->base = $base;
- $this->bev = new EventBufferEvent($base, NULL, EventBufferEvent::OPT_CLOSE_ON_FREE,
- array ($this, "read_cb"), NULL, array ($this, "event_cb"));
+ $this->bev = new EventBufferEvent($base, null, EventBufferEvent::OPT_CLOSE_ON_FREE,
+ array ($this, "read_cb"), null, array ($this, "event_cb"));
if (!$this->bev->connect("unix:$sock_path")) {
trigger_error("Failed to connect to socket `$sock_path'", E_USER_ERROR);
@@ -185,7 +185,7 @@ class MyUnixSocketClient {
function __destruct() {
if ($this->bev) {
$this->bev->free();
- $this->bev = NULL;
+ $this->bev = null;
}
}
@@ -201,8 +201,8 @@ class MyUnixSocketClient {
printf("%ld:\t%s\n", (int) $in->length, $in->pullup(-1));
$this->bev->free();
- $this->bev = NULL;
- $this->base->exit(NULL);
+ $this->bev = null;
+ $this->base->exit(null);
}
function event_cb($bev, $events, $unused) {
@@ -212,7 +212,7 @@ class MyUnixSocketClient {
if ($events & (EventBufferEvent::EOF | EventBufferEvent::ERROR)) {
$bev->free();
- $bev = NULL;
+ $bev = null;
} elseif ($events & EventBufferEvent::CONNECTED) {
$bev->output->add("test\n");
}
diff --git a/reference/event/eventbufferevent/connecthost.xml b/reference/event/eventbufferevent/connecthost.xml
index fd66d41894d6..9041076c5aae 100644
--- a/reference/event/eventbufferevent/connecthost.xml
+++ b/reference/event/eventbufferevent/connecthost.xml
@@ -175,20 +175,20 @@ function eventcb($bev, $events, $base) {
$base = new EventBase();
-$dns_base = new EventDnsBase($base, TRUE); // We'll use async DNS resolving
+$dns_base = new EventDnsBase($base, true); // We'll use async DNS resolving
if (!$dns_base) {
exit("Failed to init DNS Base\n");
}
-$bev = new EventBufferEvent($base, /* use internal socket */ NULL,
+$bev = new EventBufferEvent($base, /* use internal socket */ null,
EventBufferEvent::OPT_CLOSE_ON_FREE | EventBufferEvent::OPT_DEFER_CALLBACKS,
- "readcb", /* writecb */ NULL, "eventcb", $base
+ "readcb", /* writecb */ null, "eventcb", $base
);
if (!$bev) {
exit("Failed creating bufferevent socket\n");
}
-//$bev->setCallbacks("readcb", /* writecb */ NULL, "eventcb", $base);
+//$bev->setCallbacks("readcb", /* writecb */ null, "eventcb", $base);
$bev->enable(Event::READ | Event::WRITE);
$output = $bev->output; //$bev->getOutput();
diff --git a/reference/event/eventbufferevent/getoutput.xml b/reference/event/eventbufferevent/getoutput.xml
index 1fe54065ea3b..e8da81c2d680 100644
--- a/reference/event/eventbufferevent/getoutput.xml
+++ b/reference/event/eventbufferevent/getoutput.xml
@@ -51,14 +51,14 @@
EventHttpRequest
req
- NULL
+ null
mixed
arg
- NULL
+ null
diff --git a/reference/event/eventhttp/setdefaultcallback.xml b/reference/event/eventhttp/setdefaultcallback.xml
index 3b65085a73fe..ea3f72592d54 100644
--- a/reference/event/eventhttp/setdefaultcallback.xml
+++ b/reference/event/eventhttp/setdefaultcallback.xml
@@ -45,13 +45,13 @@
choice="opt">
EventHttpRequest
req
- NULL
+ null
mixed
arg
- NULL
+ null
diff --git a/reference/event/eventhttpconnection/makerequest.xml b/reference/event/eventhttpconnection/makerequest.xml
index 31748c8a2889..538b78596243 100644
--- a/reference/event/eventhttpconnection/makerequest.xml
+++ b/reference/event/eventhttpconnection/makerequest.xml
@@ -105,14 +105,14 @@ function _request_handler($req, $base) {
}
}
- $base->exit(NULL);
+ $base->exit(null);
}
$address = "127.0.0.1";
$port = 80;
$base = new EventBase();
-$conn = new EventHttpConnection($base, NULL, $address, $port);
+$conn = new EventHttpConnection($base, null, $address, $port);
$conn->setTimeout(5);
$req = new EventHttpRequest("_request_handler", $base);
diff --git a/reference/event/eventhttpconnection/setclosecallback.xml b/reference/event/eventhttpconnection/setclosecallback.xml
index 8f7ce8990c06..2cf412ce98f3 100644
--- a/reference/event/eventhttpconnection/setclosecallback.xml
+++ b/reference/event/eventhttpconnection/setclosecallback.xml
@@ -112,7 +112,7 @@ function _close_callback($conn)
function _http_default($req, $dummy)
{
$conn = $req->getConnection();
- $conn->setCloseCallback('_close_callback', NULL);
+ $conn->setCloseCallback('_close_callback', null);
/*
By enabling Event::READ we protect the server against unclosed conections.
@@ -162,7 +162,7 @@ if ($port <= 0 || $port > 65535) {
$base = new EventBase();
$http = new EventHttp($base);
-$http->setDefaultCallback("_http_default", NULL);
+$http->setDefaultCallback("_http_default", null);
$http->bind("0.0.0.0", $port);
$base->loop();
diff --git a/reference/event/eventhttprequest/construct.xml b/reference/event/eventhttprequest/construct.xml
index 83197135ac45..cf420e1bb308 100644
--- a/reference/event/eventhttprequest/construct.xml
+++ b/reference/event/eventhttprequest/construct.xml
@@ -97,7 +97,7 @@ function _request_handler($req, $base) {
}
}
- $base->exit(NULL);
+ $base->exit(null);
}
@@ -105,7 +105,7 @@ $address = "127.0.0.1";
$port = 80;
$base = new EventBase();
-$conn = new EventHttpConnection($base, NULL, $address, $port);
+$conn = new EventHttpConnection($base, null, $address, $port);
$conn->setTimeout(5);
$req = new EventHttpRequest("_request_handler", $base);
diff --git a/reference/event/eventlistener/construct.xml b/reference/event/eventlistener/construct.xml
index 8e6a859a85aa..deadd784a69f 100644
--- a/reference/event/eventlistener/construct.xml
+++ b/reference/event/eventlistener/construct.xml
@@ -185,8 +185,8 @@ class MyListenerConnection {
$this->bev = new EventBufferEvent($base, $fd, EventBufferEvent::OPT_CLOSE_ON_FREE);
- $this->bev->setCallbacks(array($this, "echoReadCallback"), NULL,
- array($this, "echoEventCallback"), NULL);
+ $this->bev->setCallbacks(array($this, "echoReadCallback"), null,
+ array($this, "echoEventCallback"), null);
if (!$this->bev->enable(Event::READ)) {
echo "Failed to enable READ\n";
@@ -227,7 +227,7 @@ class MyListener {
private $conn = array();
public function __destruct() {
- foreach ($this->conn as &$c) $c = NULL;
+ foreach ($this->conn as &$c) $c = null;
}
public function __construct($port) {
@@ -283,7 +283,7 @@ class MyListener {
EventUtil::getLastSocketErrno(),
EventUtil::getLastSocketError());
- $base->exit(NULL);
+ $base->exit(null);
}
}
diff --git a/reference/event/examples.xml b/reference/event/examples.xml
index 8b5731909023..01a746407b04 100644
--- a/reference/event/examples.xml
+++ b/reference/event/examples.xml
@@ -46,20 +46,20 @@ EOS;
$base = new EventBase();
-$dns_base = new EventDnsBase($base, TRUE); // We'll use async DNS resolving
+$dns_base = new EventDnsBase($base, true); // We'll use async DNS resolving
if (!$dns_base) {
exit("Failed to init DNS Base\n");
}
-$bev = new EventBufferEvent($base, /* use internal socket */ NULL,
+$bev = new EventBufferEvent($base, /* use internal socket */ null,
EventBufferEvent::OPT_CLOSE_ON_FREE | EventBufferEvent::OPT_DEFER_CALLBACKS,
- "readcb", /* writecb */ NULL, "eventcb"
+ "readcb", /* writecb */ null, "eventcb"
);
if (!$bev) {
exit("Failed creating bufferevent socket\n");
}
-//$bev->setCallbacks("readcb", /* writecb */ NULL, "eventcb", $base);
+//$bev->setCallbacks("readcb", /* writecb */ null, "eventcb", $base);
$bev->enable(Event::READ | Event::WRITE);
$output = $bev->output; //$bev->getOutput();
@@ -149,14 +149,14 @@ function eventcb($bev, $events, $base) {
$base = new EventBase();
echo "step 1\n";
-$bev = new EventBufferEvent($base, /* use internal socket */ NULL,
+$bev = new EventBufferEvent($base, /* use internal socket */ null,
EventBufferEvent::OPT_CLOSE_ON_FREE | EventBufferEvent::OPT_DEFER_CALLBACKS);
if (!$bev) {
exit("Failed creating bufferevent socket\n");
}
echo "step 2\n";
-$bev->setCallbacks("readcb", /* writecb */ NULL, "eventcb", $base);
+$bev->setCallbacks("readcb", /* writecb */ null, "eventcb", $base);
$bev->enable(Event::READ | Event::WRITE);
echo "step 3\n";
@@ -213,8 +213,8 @@ class MyListenerConnection {
$this->bev = new EventBufferEvent($base, $fd, EventBufferEvent::OPT_CLOSE_ON_FREE);
- $this->bev->setCallbacks(array($this, "echoReadCallback"), NULL,
- array($this, "echoEventCallback"), NULL);
+ $this->bev->setCallbacks(array($this, "echoReadCallback"), null,
+ array($this, "echoEventCallback"), null);
if (!$this->bev->enable(Event::READ)) {
echo "Failed to enable READ\n";
@@ -255,7 +255,7 @@ class MyListener {
private $conn = array();
public function __destruct() {
- foreach ($this->conn as &$c) $c = NULL;
+ foreach ($this->conn as &$c) $c = null;
}
public function __construct($port) {
@@ -311,7 +311,7 @@ class MyListener {
EventUtil::getLastSocketErrno(),
EventUtil::getLastSocketError());
- $base->exit(NULL);
+ $base->exit(null);
}
}
@@ -413,13 +413,13 @@ class MySslEchoServer {
if (!$this->bev) {
echo "Failed creating ssl buffer\n";
- $this->base->exit(NULL);
+ $this->base->exit(null);
exit(1);
}
$this->bev->enable(Event::READ);
- $this->bev->setCallbacks(array($this, "ssl_read_cb"), NULL,
- array($this, "ssl_event_cb"), NULL);
+ $this->bev->setCallbacks(array($this, "ssl_read_cb"), null,
+ array($this, "ssl_event_cb"), null);
}
// This callback is invoked when we failed to setup new connection for a client
@@ -429,7 +429,7 @@ class MySslEchoServer {
EventUtil::getLastSocketErrno(),
EventUtil::getLastSocketError());
- $this->base->exit(NULL);
+ $this->base->exit(null);
}
// Initialize SSL structures, create an EventSslContext
@@ -450,7 +450,7 @@ class MySslEchoServer {
" openssl req -new -key $local_pk -out cert.req\n",
" openssl x509 -req -days 365 -in cert.req -signkey $local_pk -out $local_cert\n";
- return FALSE;
+ return false;
}
$ctx = new EventSslContext(EventSslContext::SSLv3_SERVER_METHOD, array (
@@ -911,7 +911,7 @@ function _request_handler($req, $base) {
}
}
- $base->exit(NULL);
+ $base->exit(null);
}
function _init_ssl() {
@@ -941,7 +941,7 @@ if (!$base) {
trigger_error("Failed to initialize event base", E_USER_ERROR);
}
-$conn = new EventHttpConnection($base, NULL, $host, $port, $ctx);
+$conn = new EventHttpConnection($base, null, $host, $port, $ctx);
$conn->setTimeout(50);
$req = new EventHttpRequest("_request_handler", $base);
@@ -986,14 +986,14 @@ function _request_handler($req, $base) {
}
}
- $base->exit(NULL);
+ $base->exit(null);
}
$address = "127.0.0.1";
$port = 80;
$base = new EventBase();
-$conn = new EventHttpConnection($base, NULL, $address, $port);
+$conn = new EventHttpConnection($base, null, $address, $port);
$conn->setTimeout(5);
$req = new EventHttpRequest("_request_handler", $base);
@@ -1052,8 +1052,8 @@ class MyListenerConnection {
$this->bev = new EventBufferEvent($base, $fd, EventBufferEvent::OPT_CLOSE_ON_FREE);
- $this->bev->setCallbacks(array($this, "echoReadCallback"), NULL,
- array($this, "echoEventCallback"), NULL);
+ $this->bev->setCallbacks(array($this, "echoReadCallback"), null,
+ array($this, "echoEventCallback"), null);
if (!$this->bev->enable(Event::READ)) {
echo "Failed to enable READ\n";
@@ -1073,7 +1073,7 @@ class MyListenerConnection {
if ($events & (EventBufferEvent::EOF | EventBufferEvent::ERROR)) {
$bev->free();
- $bev = NULL;
+ $bev = null;
}
}
}
@@ -1085,7 +1085,7 @@ class MyListener {
private $conn = array();
public function __destruct() {
- foreach ($this->conn as &$c) $c = NULL;
+ foreach ($this->conn as &$c) $c = null;
}
public function __construct($sock_path) {
@@ -1130,7 +1130,7 @@ class MyListener {
EventUtil::getLastSocketErrno(),
EventUtil::getLastSocketError());
- $base->exit(NULL);
+ $base->exit(null);
}
}
@@ -1162,7 +1162,7 @@ $l->dispatch();
*/
class Handler {
- public $domainName = FALSE;
+ public $domainName = false;
public $connections = [];
public $buffers = [];
public $maxRead = 256000;
@@ -1205,11 +1205,11 @@ class Handler {
if (!$this->connections[$id]['cnx']) {
echo "Failed creating buffer\n";
- $this->base->exit(NULL);
+ $this->base->exit(null);
exit(1);
}
- $this->connections[$id]['cnx']->setCallbacks([$this, "ev_read"], NULL,
+ $this->connections[$id]['cnx']->setCallbacks([$this, "ev_read"], null,
[$this, 'ev_error'], $id);
$this->connections[$id]['cnx']->enable(Event::READ | Event::WRITE);
@@ -1223,7 +1223,7 @@ class Handler {
$errno, EventUtil::getLastSocketError());
if ($errno != 0) {
- $this->base->exit(NULL);
+ $this->base->exit(null);
exit();
}
}
@@ -1279,7 +1279,7 @@ class Handler {
$this->connections[$id]['cnx'], $this->ctx,
EventBufferEvent::SSL_ACCEPTING,
EventBufferEvent::OPT_CLOSE_ON_FREE);
- $this->connections[$id]['cnx']->setCallbacks([$this, "ev_read"], NULL, [$this, 'ev_error'], $id);
+ $this->connections[$id]['cnx']->setCallbacks([$this, "ev_read"], null, [$this, 'ev_error'], $id);
$this->connections[$id]['cnx']->enable(Event::READ | Event::WRITE);
break;
diff --git a/reference/filesystem/functions/feof.xml b/reference/filesystem/functions/feof.xml
index 4ec3499ec892..4903d76d9c74 100644
--- a/reference/filesystem/functions/feof.xml
+++ b/reference/filesystem/functions/feof.xml
@@ -51,7 +51,7 @@
false
$file = @fopen("no_such_file", "r");
-// FALSE from fopen will issue warning and result in infinite loop here
+// false from fopen will issue warning and result in infinite loop here
while (!feof($file)) {
}
diff --git a/reference/filesystem/functions/fgetcsv.xml b/reference/filesystem/functions/fgetcsv.xml
index 7e1ba4046dc9..24366d72e469 100644
--- a/reference/filesystem/functions/fgetcsv.xml
+++ b/reference/filesystem/functions/fgetcsv.xml
@@ -198,8 +198,8 @@
$num fields in line $row:
\n";
$row++;
diff --git a/reference/filesystem/functions/file-get-contents.xml b/reference/filesystem/functions/file-get-contents.xml
index 624b1a3e8bde..b3f30d340612 100644
--- a/reference/filesystem/functions/file-get-contents.xml
+++ b/reference/filesystem/functions/file-get-contents.xml
@@ -186,7 +186,7 @@ $file = file_get_contents('./people.txt', FILE_USE_INCLUDE_PATH);
]]>
diff --git a/reference/filesystem/functions/fread.xml b/reference/filesystem/functions/fread.xml
index c16a275f849e..9ff9ce27d873 100644
--- a/reference/filesystem/functions/fread.xml
+++ b/reference/filesystem/functions/fread.xml
@@ -142,7 +142,7 @@ fclose($handle);
3,
)
);
-if (filter_var($int_a, FILTER_VALIDATE_INT, $options) !== FALSE) {
+if (filter_var($int_a, FILTER_VALIDATE_INT, $options) !== false) {
echo "Integer A '$int_a' is considered valid (between 0 and 3).\n";
}
-if (filter_var($int_b, FILTER_VALIDATE_INT, $options) !== FALSE) {
+if (filter_var($int_b, FILTER_VALIDATE_INT, $options) !== false) {
echo "Integer B '$int_b' is considered valid (between 0 and 3).\n";
}
-if (filter_var($int_c, FILTER_VALIDATE_INT, $options) !== FALSE) {
+if (filter_var($int_c, FILTER_VALIDATE_INT, $options) !== false) {
echo "Integer C '$int_c' is considered valid (between 0 and 3).\n";
}
$options['options']['default'] = 1;
-if (($int_c = filter_var($int_c, FILTER_VALIDATE_INT, $options)) !== FALSE) {
+if (($int_c = filter_var($int_c, FILTER_VALIDATE_INT, $options)) !== false) {
echo "Integer C '$int_c' is considered valid (between 0 and 3).";
}
?>
diff --git a/reference/gearman/constants.xml b/reference/gearman/constants.xml
index 1bdbd1b9d375..b59f670dbf7f 100644
--- a/reference/gearman/constants.xml
+++ b/reference/gearman/constants.xml
@@ -212,7 +212,7 @@
- Trying to register a function name of NULL or using the callback interface
+ Trying to register a function name of null or using the callback interface
without specifying callbacks.
@@ -224,7 +224,7 @@
- Trying to register a function with a NULL callback function.
+ Trying to register a function with a null callback function.
diff --git a/reference/gearman/examples.xml b/reference/gearman/examples.xml
index b2b606737a12..bb951a3e191f 100644
--- a/reference/gearman/examples.xml
+++ b/reference/gearman/examples.xml
@@ -308,7 +308,7 @@ $data['foo'] = 'bar';
# add two tasks
$task= $gmc->addTask("reverse", "foo", $data);
-$task2= $gmc->addTaskLow("reverse", "bar", NULL);
+$task2= $gmc->addTaskLow("reverse", "bar", null);
# run the tasks in parallel (assuming multiple workers)
if (! $gmc->runTasks())
diff --git a/reference/gmp/functions/gmp-invert.xml b/reference/gmp/functions/gmp-invert.xml
index a0a1b5b6b242..354bd62c715f 100644
--- a/reference/gmp/functions/gmp-invert.xml
+++ b/reference/gmp/functions/gmp-invert.xml
@@ -54,7 +54,7 @@
diff --git a/reference/ibase/functions/ibase-server-info.xml b/reference/ibase/functions/ibase-server-info.xml
index 71672febd20d..af76b0fefbf4 100644
--- a/reference/ibase/functions/ibase-server-info.xml
+++ b/reference/ibase/functions/ibase-server-info.xml
@@ -55,7 +55,7 @@
an input-output (INOUT) parameter that accepts the name of the second
- animal as input and returns the string TRUE if an
+ animal as input and returns the string true if an
animal in the database matches that name
@@ -239,7 +239,7 @@ Values of bound parameters _before_ CALL:
1: Peaches 2: Rickety Ride 3: 0
Values of bound parameters _after_ CALL:
- 1: Peaches 2: TRUE 3: 22
+ 1: Peaches 2: true 3: 22
Results:
Peaches, dog, 12.3
diff --git a/reference/image/functions/imagecrop.xml b/reference/image/functions/imagecrop.xml
index 18a783bc4c9c..d2bd295e6cb5 100644
--- a/reference/image/functions/imagecrop.xml
+++ b/reference/image/functions/imagecrop.xml
@@ -81,7 +81,7 @@
$im = imagecreatefrompng('example.png');
$size = min(imagesx($im), imagesy($im));
$im2 = imagecrop($im, ['x' => 0, 'y' => 0, 'width' => $size, 'height' => $size]);
-if ($im2 !== FALSE) {
+if ($im2 !== false) {
imagepng($im2, 'example-cropped.png');
}
?>
diff --git a/reference/image/functions/imagegif.xml b/reference/image/functions/imagegif.xml
index 15ac01b99f61..3a3e5029d23e 100644
--- a/reference/image/functions/imagegif.xml
+++ b/reference/image/functions/imagegif.xml
@@ -141,7 +141,7 @@ elseif(function_exists('imagejpeg'))
// For JPEG
header('Content-Type: image/jpeg');
- imagejpeg($im, NULL, 100);
+ imagejpeg($im, null, 100);
}
elseif(function_exists('imagepng'))
{
diff --git a/reference/image/functions/imageistruecolor.xml b/reference/image/functions/imageistruecolor.xml
index 086b46f8f592..f92c1c336d18 100644
--- a/reference/image/functions/imageistruecolor.xml
+++ b/reference/image/functions/imageistruecolor.xml
@@ -69,7 +69,7 @@ if(!imageistruecolor($im))
imagecopy($tc, $im, 0, 0, 0, 0, imagesx($im), imagesy($im));
$im = $tc;
- $tc = NULL;
+ $tc = null;
// OR use imagepalettetotruecolor()
}
diff --git a/reference/image/functions/imagejpeg.xml b/reference/image/functions/imagejpeg.xml
index e14ed731998e..1d95f6285906 100644
--- a/reference/image/functions/imagejpeg.xml
+++ b/reference/image/functions/imagejpeg.xml
@@ -143,7 +143,7 @@ imagestring($im, 1, 5, 5, 'A Simple Text String', $text_color);
header('Content-Type: image/jpeg');
// Skip the file parameter using NULL, then set the quality to 75%
-imagejpeg($im, NULL, 75);
+imagejpeg($im, null, 75);
?>
]]>
diff --git a/reference/image/functions/imagewbmp.xml b/reference/image/functions/imagewbmp.xml
index f85b7eb0a95c..469b247e93e1 100644
--- a/reference/image/functions/imagewbmp.xml
+++ b/reference/image/functions/imagewbmp.xml
@@ -133,7 +133,7 @@ header('Content-Type: image/vnd.wap.wbmp');
// Set a replacement foreground color
$foreground_color = imagecolorallocate($im, 255, 0, 0);
-imagewbmp($im, NULL, $foreground_color);
+imagewbmp($im, null, $foreground_color);
?>
]]>
diff --git a/reference/image/functions/imagexbm.xml b/reference/image/functions/imagexbm.xml
index 1f25e8e2f4dc..8da6401941cb 100644
--- a/reference/image/functions/imagexbm.xml
+++ b/reference/image/functions/imagexbm.xml
@@ -129,7 +129,7 @@ imagestring($im, 1, 5, 5, 'A Simple Text String', $text_color);
$foreground_color = imagecolorallocate($im, 255, 0, 0);
// Save the image
-imagexbm($im, NULL, $foreground_color);
+imagexbm($im, null, $foreground_color);
?>
]]>
diff --git a/reference/imagick/imagick/writeimage.xml b/reference/imagick/imagick/writeimage.xml
index 8847e3f6cbd9..1fa78a3e2e45 100644
--- a/reference/imagick/imagick/writeimage.xml
+++ b/reference/imagick/imagick/writeimage.xml
@@ -10,7 +10,7 @@
&reftitle.description;
public boolImagick::writeImage
- stringfilenameNULL
+ stringfilenamenull
Writes an image to the specified filename. If the filename parameter is NULL,
diff --git a/reference/imagick/imagickkernel/frommatrix.xml b/reference/imagick/imagickkernel/frommatrix.xml
index b9b1af695444..0e4328276399 100644
--- a/reference/imagick/imagickkernel/frommatrix.xml
+++ b/reference/imagick/imagickkernel/frommatrix.xml
@@ -30,7 +30,7 @@
array
- A matrix (i.e. 2d array) of values that define the kernel. Each element should be either a float value, or FALSE if that element shouldn't be used by the kernel.
+ A matrix (i.e. 2d array) of values that define the kernel. Each element should be either a float value, or false if that element shouldn't be used by the kernel.
diff --git a/reference/intl/dateformatter/getcalendarobject.xml b/reference/intl/dateformatter/getcalendarobject.xml
index 02b2d8bd908c..820c9db668ba 100644
--- a/reference/intl/dateformatter/getcalendarobject.xml
+++ b/reference/intl/dateformatter/getcalendarobject.xml
@@ -57,8 +57,8 @@
getTimezone());
echo $madrid->getTimezone()->getDisplayName(
diff --git a/reference/intl/dateformatter/is-lenient.xml b/reference/intl/dateformatter/is-lenient.xml
index c77a67dd6eb8..52b6bef5a9f5 100644
--- a/reference/intl/dateformatter/is-lenient.xml
+++ b/reference/intl/dateformatter/is-lenient.xml
@@ -68,9 +68,9 @@ $fmt = datefmt_create(
);
echo 'lenient of the formatter is : ';
if ($fmt->isLenient()) {
- echo 'TRUE';
+ echo 'true';
} else {
- echo 'FALSE';
+ echo 'false';
}
datefmt_parse($fmt, '35/13/1971');
echo "\n Trying to do parse('35/13/1971').\nResult is : " . datefmt_parse($fmt, '35/13/1971');
@@ -81,9 +81,9 @@ if (intl_get_error_code() != 0) {
datefmt_set_lenient($fmt,false);
echo 'Now lenient of the formatter is : ';
if ($fmt->isLenient()) {
- echo 'TRUE';
+ echo 'true';
} else {
- echo 'FALSE';
+ echo 'false';
}
datefmt_parse($fmt, '35/13/1971');
echo "\n Trying to do parse('35/13/1971').Result is : " . datefmt_parse($fmt, '35/13/1971');
@@ -111,9 +111,9 @@ $fmt = new IntlDateFormatter(
);
echo "lenient of the formatter is : ";
if ($fmt->isLenient()) {
- echo 'TRUE';
+ echo 'true';
} else {
- echo 'FALSE';
+ echo 'false';
}
$fmt->parse('35/13/1971');
echo "\n Trying to do parse('35/13/1971').\nResult is : " . $fmt->parse('35/13/1971');
@@ -125,9 +125,9 @@ if (intl_get_error_code() != 0){
$fmt->setLenient(FALSE);
echo 'Now lenient of the formatter is : ';
if ($fmt->isLenient()) {
- echo 'TRUE';
+ echo 'true';
} else {
- echo 'FALSE';
+ echo 'false';
}
$fmt->parse('35/13/1971');
echo "\n Trying to do parse('35/13/1971').\nResult is : " . $fmt->parse('35/13/1971');
@@ -143,10 +143,10 @@ if (intl_get_error_code() != 0) {
&example.outputs;
format($time), "\n";
diff --git a/reference/intl/dateformatter/set-lenient.xml b/reference/intl/dateformatter/set-lenient.xml
index 619f3b965438..e4c484af483d 100644
--- a/reference/intl/dateformatter/set-lenient.xml
+++ b/reference/intl/dateformatter/set-lenient.xml
@@ -80,9 +80,9 @@ $fmt = datefmt_create(
);
echo 'lenient of the formatter is : ';
if ($fmt->isLenient()) {
- echo 'TRUE';
+ echo 'true';
} else {
- echo 'FALSE';
+ echo 'false';
}
datefmt_parse($fmt, '35/13/1971');
echo "\n Trying to do parse('35/13/1971').\nResult is : " . datefmt_parse($fmt, '35/13/1971');
@@ -93,9 +93,9 @@ if (intl_get_error_code() != 0) {
datefmt_set_lenient($fmt, false);
echo "\nNow lenient of the formatter is : ";
if ($fmt->isLenient()) {
- echo 'TRUE';
+ echo 'true';
} else {
- echo 'FALSE';
+ echo 'false';
}
datefmt_parse($fmt, '35/13/1971');
echo "\nTrying to do parse('35/13/1971').\nResult is : " . datefmt_parse($fmt, '35/13/1971');
@@ -123,9 +123,9 @@ $fmt = new IntlDateFormatter(
);
echo 'lenient of the formatter is : ';
if ($fmt->isLenient()) {
- echo 'TRUE';
+ echo 'true';
} else {
- echo 'FALSE';
+ echo 'false';
}
$fmt->parse('35/13/1971');
echo "\n Trying to do parse('35/13/1971').\nResult is : " . $fmt->parse('35/13/1971');
@@ -134,12 +134,12 @@ if (intl_get_error_code() != 0) {
echo "\nError_code is : " . intl_get_error_code();
}
-$fmt->setLenient(FALSE);
+$fmt->setLenient(false);
echo "\nNow lenient of the formatter is : ";
if ($fmt->isLenient()) {
- echo 'TRUE';
+ echo 'true';
} else {
- echo 'FALSE';
+ echo 'false';
}
$fmt->parse('35/13/1971');
echo "\n Trying to do parse('35/13/1971').\nResult is : " . $fmt->parse('35/13/1971');
@@ -155,10 +155,10 @@ if (intl_get_error_code() != 0) {
&example.outputs;
setTimeZone(NULL);
+$formatter->setTimeZone(null);
echo "NULL\n ", $formatter->getTimeZone()->getId(), "\n";
$formatter->setTimeZone(IntlTimeZone::createTimeZone('Europe/Lisbon'));
diff --git a/reference/intl/ini.xml b/reference/intl/ini.xml
index 0c337acde25c..140ac7aa16d3 100644
--- a/reference/intl/ini.xml
+++ b/reference/intl/ini.xml
@@ -54,7 +54,7 @@
The locale that will be used in intl functions when none is specified
(either by omitting the corresponding argument or by passing
- NULL). These are ICU locales, not system locales.
+ null). These are ICU locales, not system locales.
The built-in ICU locales and their data can be explored at
.
diff --git a/reference/intl/intlcalendar/createinstance.xml b/reference/intl/intlcalendar/createinstance.xml
index 891118c76ff4..0041807cde8d 100644
--- a/reference/intl/intlcalendar/createinstance.xml
+++ b/reference/intl/intlcalendar/createinstance.xml
@@ -92,7 +92,7 @@ var_dump(get_class($cal),
echo "\n";
echo "Explicit locale (with calendar)\n";
-$cal = IntlCalendar::createInstance(NULL, 'es_ES@calendar=persian');
+$cal = IntlCalendar::createInstance(null, 'es_ES@calendar=persian');
var_dump(get_class($cal),
IntlDateFormatter::formatObject($cal, IntlDateFormatter::FULL));
diff --git a/reference/intl/intlcalendar/equals.xml b/reference/intl/intlcalendar/equals.xml
index 6f7168b3799e..77cf259582af 100644
--- a/reference/intl/intlcalendar/equals.xml
+++ b/reference/intl/intlcalendar/equals.xml
@@ -69,31 +69,31 @@
equals($cal2)); //TRUE
+var_dump($cal1->equals($cal2)); //true
//The locale is not included in the comparison
-$cal2 = IntlCalendar::createInstance(NULL, 'pt_PT');
+$cal2 = IntlCalendar::createInstance(null, 'pt_PT');
$cal2->setTime($cal1->getTime());
-var_dump($cal1->equals($cal2)); //TRUE
+var_dump($cal1->equals($cal2)); //true
//And set fields state is not included as well
$cal2->clear(IntlCalendar::FIELD_YEAR);
var_dump($cal1->isSet(IntlCalendar::FIELD_YEAR) ==
- $cal2->isSet(IntlCalendar::FIELD_YEAR)); //FALSE
-var_dump($cal1->equals($cal2)); //TRUE
+ $cal2->isSet(IntlCalendar::FIELD_YEAR)); //false
+var_dump($cal1->equals($cal2)); //true
//Neither is the calendar type
-$cal2 = IntlCalendar::createInstance(NULL, 'es_ES@calendar=islamic');
+$cal2 = IntlCalendar::createInstance(null, 'es_ES@calendar=islamic');
$cal2->setTime($cal1->getTime());
-var_dump($cal1->equals($cal2)); //TRUE
+var_dump($cal1->equals($cal2)); //true
//Only the time is
$cal2 = clone $cal1;
$cal2->setTime($cal1->getTime() + 1.);
-var_dump($cal1->equals($cal2)); //FALSE
+var_dump($cal1->equals($cal2)); //false
]]>
diff --git a/reference/intl/intlcalendar/getfirstdayofweek.xml b/reference/intl/intlcalendar/getfirstdayofweek.xml
index 12162bf787c6..385b2e1d5be5 100644
--- a/reference/intl/intlcalendar/getfirstdayofweek.xml
+++ b/reference/intl/intlcalendar/getfirstdayofweek.xml
@@ -61,12 +61,12 @@
getFirstDayOfWeek()); // Monday
$cal1->set(2013, 1 /* February */, 3); // a Sunday
var_dump($cal1->get(IntlCalendar::FIELD_WEEK_OF_YEAR)); // 5
-$cal2 = IntlCalendar::createInstance(NULL, 'en_US');
+$cal2 = IntlCalendar::createInstance(null, 'en_US');
var_dump($cal2->getFirstDayOfWeek()); // Sunday
$cal2->set(2013, 1 /* February */, 3); // a Sunday
var_dump($cal2->get(IntlCalendar::FIELD_WEEK_OF_YEAR)); // 6
diff --git a/reference/intl/intlcalendar/getrepeatedwalltimeoption.xml b/reference/intl/intlcalendar/getrepeatedwalltimeoption.xml
index 83869d6dc703..106d5abf1186 100644
--- a/reference/intl/intlcalendar/getrepeatedwalltimeoption.xml
+++ b/reference/intl/intlcalendar/getrepeatedwalltimeoption.xml
@@ -71,7 +71,7 @@ $cal = new IntlGregorianCalendar(2013, 9 /* October */, 27, 1, 30);
var_dump($cal->getRepeatedWalltimeOption()); // 0 WALLTIME_LAST
$formatter = IntlDateFormatter::create(
- NULL,
+ null,
IntlDateFormatter::FULL,
IntlDateFormatter::FULL,
'UTC'
diff --git a/reference/intl/intlcalendar/getskippedwalltimeoption.xml b/reference/intl/intlcalendar/getskippedwalltimeoption.xml
index 6e8816ec1b6e..d8ea50432700 100644
--- a/reference/intl/intlcalendar/getskippedwalltimeoption.xml
+++ b/reference/intl/intlcalendar/getskippedwalltimeoption.xml
@@ -80,7 +80,7 @@ var_dump(
);
$formatter = IntlDateFormatter::create(
- NULL,
+ null,
IntlDateFormatter::FULL,
IntlDateFormatter::FULL,
'UTC'
diff --git a/reference/intl/intlcalendar/gettype.xml b/reference/intl/intlcalendar/gettype.xml
index 31fba6daae70..3a4863586de2 100644
--- a/reference/intl/intlcalendar/gettype.xml
+++ b/reference/intl/intlcalendar/gettype.xml
@@ -60,7 +60,7 @@
ini_set('date.timezone', 'Europe/Lisbon');
ini_set('intl.default_locale', 'en_US');
-$cal = IntlCalendar::createInstance(NULL, '@calendar=ethiopic-amete-alem');
+$cal = IntlCalendar::createInstance(null, '@calendar=ethiopic-amete-alem');
var_dump($cal->getType());
$cal = new IntlGregorianCalendar();
diff --git a/reference/intl/intlcalendar/isweekend.xml b/reference/intl/intlcalendar/isweekend.xml
index f7c2804591a7..3339c4611e2a 100644
--- a/reference/intl/intlcalendar/isweekend.xml
+++ b/reference/intl/intlcalendar/isweekend.xml
@@ -74,13 +74,13 @@
set(2013, 6 /* July */, 7); // a Sunday
var_dump($cal->isWeekend()); // true
var_dump($cal->isWeekend(strtotime('2013-07-01 00:00:00'))); // false, Monday
-$cal = new IntlGregorianCalendar(NULL, 'ar_SA');
+$cal = new IntlGregorianCalendar(null, 'ar_SA');
$cal->set(2013, 6 /* July */, 7); // a Sunday
var_dump($cal->isWeekend()); // false, Sunday not in weekend in this calendar
]]>
diff --git a/reference/intl/intlcalendar/set.xml b/reference/intl/intlcalendar/set.xml
index ebbb63d7284d..ac905d7cda34 100644
--- a/reference/intl/intlcalendar/set.xml
+++ b/reference/intl/intlcalendar/set.xml
@@ -21,10 +21,10 @@
public trueIntlCalendar::set
intyear
intmonth
- intdayOfMonthNULL
- inthourNULL
- intminuteNULL
- intsecondNULL
+ intdayOfMonthnull
+ inthournull
+ intminutenull
+ intsecondnull
&style.procedural;
@@ -40,10 +40,10 @@
IntlCalendarcal
intyear
intmonth
- intdayOfMonthNULL
- inthourNULL
- intminuteNULL
- intsecondNULL
+ intdayOfMonthnull
+ inthournull
+ intminutenull
+ intsecondnull
Sets either a specific field to the given value, or sets at once several
diff --git a/reference/intl/spoofchecker/issuspicious.xml b/reference/intl/spoofchecker/issuspicious.xml
index 150497af85c2..e6afb2cbb60b 100644
--- a/reference/intl/spoofchecker/issuspicious.xml
+++ b/reference/intl/spoofchecker/issuspicious.xml
@@ -59,9 +59,9 @@
isSuspicious('google.com'); // FALSE: only ASCII characters
+$checker->isSuspicious('google.com'); // false: only ASCII characters
-$checker->isSuspicious('Ð aypal.com'); // TRUE
+$checker->isSuspicious('Ð aypal.com'); // true
// The first letter is from Cyrylic, not a regular latin "P"
]]>
diff --git a/reference/ldap/examples.xml b/reference/ldap/examples.xml
index 191846bdbe43..5e956ca35ed0 100644
--- a/reference/ldap/examples.xml
+++ b/reference/ldap/examples.xml
@@ -113,7 +113,7 @@ $result = ldap_mod_replace_ext(
[
[
'oid' => LDAP_CONTROL_ASSERT,
- 'iscritical' => TRUE,
+ 'iscritical' => true,
'value' => ['filter' => '(!(description=*))']
]
]
@@ -138,7 +138,7 @@ $result = ldap_delete_ext(
[
[
'oid' => LDAP_CONTROL_PRE_READ,
- 'iscritical' => TRUE,
+ 'iscritical' => true,
'value' => ['attrs' => ['o', 'description']]
]
]
@@ -162,7 +162,7 @@ $result = ldap_delete_ext(
$result = ldap_delete_ext(
$link,
'cn=reference,dc=example,dc=com',
- [['oid' => LDAP_CONTROL_MANAGEDSAIT, 'iscritical' => TRUE]]
+ [['oid' => LDAP_CONTROL_MANAGEDSAIT, 'iscritical' => true]]
);
// Then use ldap_parse_result
diff --git a/reference/ldap/functions/ldap-exop.xml b/reference/ldap/functions/ldap-exop.xml
index 720febcaa0cc..dbfec075c785 100644
--- a/reference/ldap/functions/ldap-exop.xml
+++ b/reference/ldap/functions/ldap-exop.xml
@@ -141,7 +141,7 @@ if ($ds) {
var_dump($retdata);
// Same thing using $response_data parameter
- $success = ldap_exop($ds, LDAP_EXOP_WHO_AM_I, NULL, NULL, $retdata, $retoid);
+ $success = ldap_exop($ds, LDAP_EXOP_WHO_AM_I, null, null, $retdata, $retoid);
if ($success) {
var_dump($retdata);
}
diff --git a/reference/ldap/functions/ldap-modify-batch.xml b/reference/ldap/functions/ldap-modify-batch.xml
index e70cc33138cb..51a906f5134b 100644
--- a/reference/ldap/functions/ldap-modify-batch.xml
+++ b/reference/ldap/functions/ldap-modify-batch.xml
@@ -191,7 +191,7 @@ $modifs = [
],
];
ldap_modify_batch($connection, $dn, $modifs);
-ldap_rename($connection, $dn, "cn=Jack Smith-Jones", NULL, TRUE);
+ldap_rename($connection, $dn, "cn=Jack Smith-Jones", null, true);
?>
]]>
diff --git a/reference/ldap/functions/ldap-set-option.xml b/reference/ldap/functions/ldap-set-option.xml
index 4743318a8976..a679401b9c47 100644
--- a/reference/ldap/functions/ldap-set-option.xml
+++ b/reference/ldap/functions/ldap-set-option.xml
@@ -279,7 +279,7 @@ if (ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)) {
// $ds is a valid LDAP\Connection instance for a directory server
// control with no value
$ctrl1 = array("oid" => "1.2.752.58.10.1", "iscritical" => true);
-// iscritical defaults to FALSE
+// iscritical defaults to false
$ctrl2 = array("oid" => "1.2.752.58.1.10", "value" => "magic");
// try to set both controls
if (!ldap_set_option($ds, LDAP_OPT_SERVER_CONTROLS, array($ctrl1, $ctrl2))) {
diff --git a/reference/lua/lua/construct.xml b/reference/lua/lua/construct.xml
index 332a0bcd301e..c88ec6c35003 100644
--- a/reference/lua/lua/construct.xml
+++ b/reference/lua/lua/construct.xml
@@ -11,7 +11,7 @@
&reftitle.description;
public Lua::__construct
- stringlua_script_fileNULL
+ stringlua_script_filenull
diff --git a/reference/math/functions/max.xml b/reference/math/functions/max.xml
index 2dd7e3c7896d..75674a554794 100644
--- a/reference/math/functions/max.xml
+++ b/reference/math/functions/max.xml
@@ -148,13 +148,13 @@ $val = max('string', array(2, 5, 7), 42); // array(2, 5, 7)
var_dump($val);
// If one argument is NULL or a boolean, it will be compared against
-// other values using the rule FALSE < TRUE regardless of the other types involved
-// In the below example, -10 is treated as TRUE in the comparison
-$val = max(-10, FALSE); // -10
+// other values using the rule false < true regardless of the other types involved
+// In the below example, -10 is treated as true in the comparison
+$val = max(-10, false); // -10
var_dump($val);
-// 0, on the other hand, is treated as FALSE, so is "lower than" TRUE
-$val = max(0, TRUE); // TRUE
+// 0, on the other hand, is treated as false, so is "lower than" true
+$val = max(0, true); // true
var_dump($val);
?>
]]>
diff --git a/reference/math/functions/min.xml b/reference/math/functions/min.xml
index c440f4c2dc12..94f9f8a5c3ee 100644
--- a/reference/math/functions/min.xml
+++ b/reference/math/functions/min.xml
@@ -148,17 +148,17 @@ $val = min('string', array(2, 5, 7), 42); // string
var_dump($val);
// If one argument is NULL or a boolean, it will be compared against
-// other values using the rules FALSE < TRUE and NULL == FALSE regardless of the
+// other values using the rules false < true and null == false regardless of the
// other types involved
-// In the below examples, both -10 and 10 are treated as TRUE in the comparison
-$val = min(-10, FALSE, 10); // FALSE
+// In the below examples, both -10 and 10 are treated as true in the comparison
+$val = min(-10, false, 10); // false
var_dump($val);
-$val = min(-10, NULL, 10); // NULL
+$val = min(-10, null, 10); // null
var_dump($val);
-// 0, on the other hand, is treated as FALSE, so is "lower than" TRUE
-$val = min(0, TRUE); // 0
+// 0, on the other hand, is treated as false, so is "lower than" true
+$val = min(0, true); // 0
var_dump($val);
?>
]]>
diff --git a/reference/mbstring/functions/mb-strcut.xml b/reference/mbstring/functions/mb-strcut.xml
index d6c6a719cee1..173da3976969 100644
--- a/reference/mbstring/functions/mb-strcut.xml
+++ b/reference/mbstring/functions/mb-strcut.xml
@@ -63,7 +63,7 @@
length
- Length in bytes. If omitted or NULL
+ Length in bytes. If omitted or null
is passed, extract all bytes to the end of the string.
diff --git a/reference/mbstring/functions/mb-substr.xml b/reference/mbstring/functions/mb-substr.xml
index 8ce983f30fd0..b5afbc7ba479 100644
--- a/reference/mbstring/functions/mb-substr.xml
+++ b/reference/mbstring/functions/mb-substr.xml
@@ -61,7 +61,7 @@
Maximum number of characters to use from string. If
- omitted or NULL is passed, extract all characters to
+ omitted or null is passed, extract all characters to
the end of the string.
diff --git a/reference/mongodb/architecture.xml b/reference/mongodb/architecture.xml
index 77e8370a8634..91b60bf89ca1 100644
--- a/reference/mongodb/architecture.xml
+++ b/reference/mongodb/architecture.xml
@@ -616,7 +616,7 @@ class UpperClass implements MongoDB\BSON\Persistable
- not set or NULL (default)
+ not set or null (default)
@@ -777,7 +777,7 @@ class UpperClass implements MongoDB\BSON\Persistable
- If the value in the map is NULL, it means the same as the
+ If the value in the map is null, it means the same as the
default value for that item.
diff --git a/reference/mysql/functions/mysql-affected-rows.xml b/reference/mysql/functions/mysql-affected-rows.xml
index 633764ad320c..890b854b766a 100644
--- a/reference/mysql/functions/mysql-affected-rows.xml
+++ b/reference/mysql/functions/mysql-affected-rows.xml
@@ -20,7 +20,7 @@
&reftitle.description;
intmysql_affected_rows
- resourcelink_identifierNULL
+ resourcelink_identifiernull
Get the number of affected rows by the last INSERT, UPDATE, REPLACE
diff --git a/reference/mysql/functions/mysql-client-encoding.xml b/reference/mysql/functions/mysql-client-encoding.xml
index 92a72c431408..b2ef0fbc992e 100644
--- a/reference/mysql/functions/mysql-client-encoding.xml
+++ b/reference/mysql/functions/mysql-client-encoding.xml
@@ -19,7 +19,7 @@
&reftitle.description;
stringmysql_client_encoding
- resourcelink_identifierNULL
+ resourcelink_identifiernull
Retrieves the character_set variable from MySQL.
diff --git a/reference/mysql/functions/mysql-close.xml b/reference/mysql/functions/mysql-close.xml
index 3b632ccf8c60..308b9eeb0d3c 100644
--- a/reference/mysql/functions/mysql-close.xml
+++ b/reference/mysql/functions/mysql-close.xml
@@ -20,7 +20,7 @@
&reftitle.description;
boolmysql_close
- resourcelink_identifierNULL
+ resourcelink_identifiernull
mysql_close closes the non-persistent connection to
diff --git a/reference/mysql/functions/mysql-create-db.xml b/reference/mysql/functions/mysql-create-db.xml
index 5ec685c3b341..ebcc81971fa0 100644
--- a/reference/mysql/functions/mysql-create-db.xml
+++ b/reference/mysql/functions/mysql-create-db.xml
@@ -21,7 +21,7 @@
boolmysql_create_db
stringdatabase_name
- resourcelink_identifierNULL
+ resourcelink_identifiernull
mysql_create_db attempts to create a new
diff --git a/reference/mysql/functions/mysql-db-name.xml b/reference/mysql/functions/mysql-db-name.xml
index 9fb771cd3cdf..75fe017380b0 100644
--- a/reference/mysql/functions/mysql-db-name.xml
+++ b/reference/mysql/functions/mysql-db-name.xml
@@ -21,7 +21,7 @@
stringmysql_db_name
resourceresult
introw
- mixedfieldNULL
+ mixedfieldnull
Retrieve the database name from a call to
diff --git a/reference/mysql/functions/mysql-db-query.xml b/reference/mysql/functions/mysql-db-query.xml
index 1a19acd10757..62bf80a529bc 100644
--- a/reference/mysql/functions/mysql-db-query.xml
+++ b/reference/mysql/functions/mysql-db-query.xml
@@ -22,7 +22,7 @@
resourceboolmysql_db_query
stringdatabase
stringquery
- resourcelink_identifierNULL
+ resourcelink_identifiernull
mysql_db_query selects a database, and executes a
diff --git a/reference/mysql/functions/mysql-drop-db.xml b/reference/mysql/functions/mysql-drop-db.xml
index 27f77a26b930..9bc388e1d859 100644
--- a/reference/mysql/functions/mysql-drop-db.xml
+++ b/reference/mysql/functions/mysql-drop-db.xml
@@ -20,7 +20,7 @@
boolmysql_drop_db
stringdatabase_name
- resourcelink_identifierNULL
+ resourcelink_identifiernull
mysql_drop_db attempts to drop (remove) an
diff --git a/reference/mysql/functions/mysql-errno.xml b/reference/mysql/functions/mysql-errno.xml
index 5838a6545eb9..fa519dca4213 100644
--- a/reference/mysql/functions/mysql-errno.xml
+++ b/reference/mysql/functions/mysql-errno.xml
@@ -20,7 +20,7 @@
&reftitle.description;
intmysql_errno
- resourcelink_identifierNULL
+ resourcelink_identifiernull
Returns the error number from the last MySQL function.
diff --git a/reference/mysql/functions/mysql-error.xml b/reference/mysql/functions/mysql-error.xml
index 0c5e33209b8f..0cc3c3c8a6b8 100644
--- a/reference/mysql/functions/mysql-error.xml
+++ b/reference/mysql/functions/mysql-error.xml
@@ -20,7 +20,7 @@
&reftitle.description;
stringmysql_error
- resourcelink_identifierNULL
+ resourcelink_identifiernull
Returns the error text from the last MySQL function.
diff --git a/reference/mysql/functions/mysql-get-host-info.xml b/reference/mysql/functions/mysql-get-host-info.xml
index b4eb3bfddd78..320db18554df 100644
--- a/reference/mysql/functions/mysql-get-host-info.xml
+++ b/reference/mysql/functions/mysql-get-host-info.xml
@@ -23,7 +23,7 @@
&reftitle.description;
stringfalsemysql_get_host_info
- resourcelink_identifierNULL
+ resourcelink_identifiernull
Describes the type of connection in use for the connection, including the
diff --git a/reference/mysql/functions/mysql-get-proto-info.xml b/reference/mysql/functions/mysql-get-proto-info.xml
index 7709505be015..107151a4dc85 100644
--- a/reference/mysql/functions/mysql-get-proto-info.xml
+++ b/reference/mysql/functions/mysql-get-proto-info.xml
@@ -19,7 +19,7 @@
&reftitle.description;
intfalsemysql_get_proto_info
- resourcelink_identifierNULL
+ resourcelink_identifiernull
Retrieves the MySQL protocol.
diff --git a/reference/mysql/functions/mysql-get-server-info.xml b/reference/mysql/functions/mysql-get-server-info.xml
index b6dc17ac9588..8ab507815bfd 100644
--- a/reference/mysql/functions/mysql-get-server-info.xml
+++ b/reference/mysql/functions/mysql-get-server-info.xml
@@ -23,7 +23,7 @@
&reftitle.description;
stringfalsemysql_get_server_info
- resourcelink_identifierNULL
+ resourcelink_identifiernull
Retrieves the MySQL server version.
diff --git a/reference/mysql/functions/mysql-info.xml b/reference/mysql/functions/mysql-info.xml
index cb17111888e4..dfeeb8635877 100644
--- a/reference/mysql/functions/mysql-info.xml
+++ b/reference/mysql/functions/mysql-info.xml
@@ -19,7 +19,7 @@
&reftitle.description;
stringmysql_info
- resourcelink_identifierNULL
+ resourcelink_identifiernull
Returns detailed information about the last query.
diff --git a/reference/mysql/functions/mysql-insert-id.xml b/reference/mysql/functions/mysql-insert-id.xml
index c11f7d597b86..8d454e2c6ed4 100644
--- a/reference/mysql/functions/mysql-insert-id.xml
+++ b/reference/mysql/functions/mysql-insert-id.xml
@@ -20,7 +20,7 @@
&reftitle.description;
intmysql_insert_id
- resourcelink_identifierNULL
+ resourcelink_identifiernull
Retrieves the ID generated for an AUTO_INCREMENT column by the previous
diff --git a/reference/mysql/functions/mysql-list-dbs.xml b/reference/mysql/functions/mysql-list-dbs.xml
index 74c92cd34750..3da035b2f70f 100644
--- a/reference/mysql/functions/mysql-list-dbs.xml
+++ b/reference/mysql/functions/mysql-list-dbs.xml
@@ -19,7 +19,7 @@
&reftitle.description;
resourcemysql_list_dbs
- resourcelink_identifierNULL
+ resourcelink_identifiernull
Returns a result pointer containing the databases available from the
diff --git a/reference/mysql/functions/mysql-list-fields.xml b/reference/mysql/functions/mysql-list-fields.xml
index 62260610984f..d40c17b47e38 100644
--- a/reference/mysql/functions/mysql-list-fields.xml
+++ b/reference/mysql/functions/mysql-list-fields.xml
@@ -21,7 +21,7 @@
resourcemysql_list_fields
stringdatabase_name
stringtable_name
- resourcelink_identifierNULL
+ resourcelink_identifiernull
Retrieves information about the given table name.
diff --git a/reference/mysql/functions/mysql-list-processes.xml b/reference/mysql/functions/mysql-list-processes.xml
index 8953844dfb20..21ffe78bf340 100644
--- a/reference/mysql/functions/mysql-list-processes.xml
+++ b/reference/mysql/functions/mysql-list-processes.xml
@@ -19,7 +19,7 @@
&reftitle.description;
resourcefalsemysql_list_processes
- resourcelink_identifierNULL
+ resourcelink_identifiernull
Retrieves the current MySQL server threads.
diff --git a/reference/mysql/functions/mysql-list-tables.xml b/reference/mysql/functions/mysql-list-tables.xml
index 4b7c74562b7f..a88d20fe10de 100644
--- a/reference/mysql/functions/mysql-list-tables.xml
+++ b/reference/mysql/functions/mysql-list-tables.xml
@@ -20,7 +20,7 @@
resourcefalsemysql_list_tables
stringdatabase
- resourcelink_identifierNULL
+ resourcelink_identifiernull
Retrieves a list of table names from a MySQL database.
diff --git a/reference/mysql/functions/mysql-ping.xml b/reference/mysql/functions/mysql-ping.xml
index e864c1f594c5..300800a59aa8 100644
--- a/reference/mysql/functions/mysql-ping.xml
+++ b/reference/mysql/functions/mysql-ping.xml
@@ -19,7 +19,7 @@
&reftitle.description;
boolmysql_ping
- resourcelink_identifierNULL
+ resourcelink_identifiernull
Checks whether or not the connection to
diff --git a/reference/mysql/functions/mysql-query.xml b/reference/mysql/functions/mysql-query.xml
index 825487e11197..cc45506e5143 100644
--- a/reference/mysql/functions/mysql-query.xml
+++ b/reference/mysql/functions/mysql-query.xml
@@ -21,7 +21,7 @@
mixedmysql_query
stringquery
- resourcelink_identifierNULL
+ resourcelink_identifiernull
mysql_query sends a unique query (multiple queries
diff --git a/reference/mysql/functions/mysql-real-escape-string.xml b/reference/mysql/functions/mysql-real-escape-string.xml
index da99e282320d..ccb81f7290c3 100644
--- a/reference/mysql/functions/mysql-real-escape-string.xml
+++ b/reference/mysql/functions/mysql-real-escape-string.xml
@@ -21,7 +21,7 @@
stringmysql_real_escape_string
stringunescaped_string
- resourcelink_identifierNULL
+ resourcelink_identifiernull
Escapes special characters in the unescaped_string,
diff --git a/reference/mysql/functions/mysql-select-db.xml b/reference/mysql/functions/mysql-select-db.xml
index d4b21fd6f221..fd1df87b485f 100644
--- a/reference/mysql/functions/mysql-select-db.xml
+++ b/reference/mysql/functions/mysql-select-db.xml
@@ -21,7 +21,7 @@
boolmysql_select_db
stringdatabase_name
- resourcelink_identifierNULL
+ resourcelink_identifiernull
Sets the current active database on the server that's associated with the
diff --git a/reference/mysql/functions/mysql-set-charset.xml b/reference/mysql/functions/mysql-set-charset.xml
index cc4ca70000cd..f27982c0580f 100644
--- a/reference/mysql/functions/mysql-set-charset.xml
+++ b/reference/mysql/functions/mysql-set-charset.xml
@@ -21,7 +21,7 @@
boolmysql_set_charset
stringcharset
- resourcelink_identifierNULL
+ resourcelink_identifiernull
Sets the default character set for the current connection.
diff --git a/reference/mysql/functions/mysql-stat.xml b/reference/mysql/functions/mysql-stat.xml
index 2bf3eefc4d07..e2412b983b7c 100644
--- a/reference/mysql/functions/mysql-stat.xml
+++ b/reference/mysql/functions/mysql-stat.xml
@@ -23,7 +23,7 @@
&reftitle.description;
stringmysql_stat
- resourcelink_identifierNULL
+ resourcelink_identifiernull
mysql_stat returns the current server status.
diff --git a/reference/mysql/functions/mysql-thread-id.xml b/reference/mysql/functions/mysql-thread-id.xml
index fc3d82228e10..3a7914bd9a81 100644
--- a/reference/mysql/functions/mysql-thread-id.xml
+++ b/reference/mysql/functions/mysql-thread-id.xml
@@ -19,7 +19,7 @@
&reftitle.description;
intfalsemysql_thread_id
- resourcelink_identifierNULL
+ resourcelink_identifiernull
Retrieves the current thread ID. If the connection is lost, and a reconnect
diff --git a/reference/mysql/functions/mysql-unbuffered-query.xml b/reference/mysql/functions/mysql-unbuffered-query.xml
index 5eea6c67ceee..bde076e4a879 100644
--- a/reference/mysql/functions/mysql-unbuffered-query.xml
+++ b/reference/mysql/functions/mysql-unbuffered-query.xml
@@ -20,7 +20,7 @@
resourcemysql_unbuffered_query
stringquery
- resourcelink_identifierNULL
+ resourcelink_identifiernull
mysql_unbuffered_query sends the SQL query
diff --git a/reference/mysqli/mysqli_stmt/send-long-data.xml b/reference/mysqli/mysqli_stmt/send-long-data.xml
index a2a5d98bedf3..a9855ee953bd 100644
--- a/reference/mysqli/mysqli_stmt/send-long-data.xml
+++ b/reference/mysqli/mysqli_stmt/send-long-data.xml
@@ -71,7 +71,7 @@
prepare("INSERT INTO messages (message) VALUES (?)");
-$null = NULL;
+$null = null;
$stmt->bind_param("b", $null);
$fp = fopen("messages.txt", "r");
while (!feof($fp)) {
diff --git a/reference/network/functions/getprotobyname.xml b/reference/network/functions/getprotobyname.xml
index 0acee188a2c8..e195a11cf88f 100644
--- a/reference/network/functions/getprotobyname.xml
+++ b/reference/network/functions/getprotobyname.xml
@@ -52,7 +52,7 @@
tokenHandler(array($this, 'myTokenHandler'));
// Ignore the foo_uri parameter
- $op->setParam('foo_uri', NULL);
+ $op->setParam('foo_uri', null);
// No token needed for this end point
$op->setRequestTokenPath('/v1/oauth/request_token');
diff --git a/reference/oci8/fan.xml b/reference/oci8/fan.xml
index 6886145f6f4b..ed4104ad9e34 100644
--- a/reference/oci8/fan.xml
+++ b/reference/oci8/fan.xml
@@ -59,7 +59,7 @@
execute dbms_service.modify_service(
SERVICE_NAME => 'sales',
- AQ_HA_NOTIFICATIONS => TRUE);
+ AQ_HA_NOTIFICATIONS => true);
]]>
diff --git a/reference/oci8/functions/oci-bind-by-name.xml b/reference/oci8/functions/oci-bind-by-name.xml
index fddc0f631c14..4d05e268ee5e 100644
--- a/reference/oci8/functions/oci-bind-by-name.xml
+++ b/reference/oci8/functions/oci-bind-by-name.xml
@@ -488,7 +488,7 @@ $sql = 'SELECT last_name FROM employees WHERE employee_id in (:e1, :e2, :e3)';
$stid = oci_parse($conn, $sql);
$mye1 = 103;
$mye2 = 104;
-$mye3 = NULL; // pretend we were not given this value
+$mye3 = null; // pretend we were not given this value
oci_bind_by_name($stid, ':e1', $mye1);
oci_bind_by_name($stid, ':e2', $mye2);
oci_bind_by_name($stid, ':e3', $mye3);
diff --git a/reference/oci8/functions/oci-fetch-object.xml b/reference/oci8/functions/oci-fetch-object.xml
index d656c429de5e..3f00687ee63c 100644
--- a/reference/oci8/functions/oci-fetch-object.xml
+++ b/reference/oci8/functions/oci-fetch-object.xml
@@ -61,7 +61,7 @@
the appropriate case for attribute access.
- Attribute values will be &null; for any NULL
+ Attribute values will be &null; for any null
data fields.
diff --git a/reference/openssl/functions/openssl-get-cipher-methods.xml b/reference/openssl/functions/openssl-get-cipher-methods.xml
index b4267369d416..26c89432d47a 100644
--- a/reference/openssl/functions/openssl-get-cipher-methods.xml
+++ b/reference/openssl/functions/openssl-get-cipher-methods.xml
@@ -63,15 +63,15 @@ $ciphers_and_aliases = openssl_get_cipher_methods(true);
$cipher_aliases = array_diff($ciphers_and_aliases, $ciphers);
//ECB mode should be avoided
-$ciphers = array_filter( $ciphers, function($n) { return stripos($n,"ecb")===FALSE; } );
+$ciphers = array_filter( $ciphers, function($n) { return stripos($n,"ecb")===false; } );
//At least as early as Aug 2016, Openssl declared the following weak: RC2, RC4, DES, 3DES, MD5 based
-$ciphers = array_filter( $ciphers, function($c) { return stripos($c,"des")===FALSE; } );
-$ciphers = array_filter( $ciphers, function($c) { return stripos($c,"rc2")===FALSE; } );
-$ciphers = array_filter( $ciphers, function($c) { return stripos($c,"rc4")===FALSE; } );
-$ciphers = array_filter( $ciphers, function($c) { return stripos($c,"md5")===FALSE; } );
-$cipher_aliases = array_filter($cipher_aliases,function($c) { return stripos($c,"des")===FALSE; } );
-$cipher_aliases = array_filter($cipher_aliases,function($c) { return stripos($c,"rc2")===FALSE; } );
+$ciphers = array_filter( $ciphers, function($c) { return stripos($c,"des")===false; } );
+$ciphers = array_filter( $ciphers, function($c) { return stripos($c,"rc2")===false; } );
+$ciphers = array_filter( $ciphers, function($c) { return stripos($c,"rc4")===false; } );
+$ciphers = array_filter( $ciphers, function($c) { return stripos($c,"md5")===false; } );
+$cipher_aliases = array_filter($cipher_aliases,function($c) { return stripos($c,"des")===false; } );
+$cipher_aliases = array_filter($cipher_aliases,function($c) { return stripos($c,"rc2")===false; } );
print_r($ciphers);
print_r($cipher_aliases);
diff --git a/reference/openssl/functions/openssl-spki-export-challenge.xml b/reference/openssl/functions/openssl-spki-export-challenge.xml
index b8c9132e896c..886a2b1f9c4f 100644
--- a/reference/openssl/functions/openssl-spki-export-challenge.xml
+++ b/reference/openssl/functions/openssl-spki-export-challenge.xml
@@ -51,7 +51,7 @@
openssl_spki_export_challenge example
- Extracts the associated challenge string or NULL on failure.
+ Extracts the associated challenge string or null on failure.
null is supplied.
diff --git a/reference/pdo/constants.fetch-modes.xml b/reference/pdo/constants.fetch-modes.xml
index 97118099d952..b26b0849ef14 100644
--- a/reference/pdo/constants.fetch-modes.xml
+++ b/reference/pdo/constants.fetch-modes.xml
@@ -1014,7 +1014,7 @@ $stmt->bindColumn('country', $country);
$stmt->bindColumn(4, $referrerName);
while ($stmt->fetch(\PDO::FETCH_BOUND)) {
- print join("\t", [$userId, $name, $country, ($referrerName ?? 'NULL')]) . "\n";
+ print join("\t", [$userId, $name, $country, ($referrerName ?? 'null')]) . "\n";
}
]]>
@@ -1117,7 +1117,7 @@ object(TestEntity)#3 (4) {
- PDORow will return NULL without
+ PDORow will return null without
any error or warning when accessing properties or keys that are not defined.
This can make errors such as typos or queries not returning expected data
harder to spot and debug.
diff --git a/reference/pdo/constants.xml b/reference/pdo/constants.xml
index 951a0a656920..ca9f0b400e6e 100644
--- a/reference/pdo/constants.xml
+++ b/reference/pdo/constants.xml
@@ -453,8 +453,8 @@
- Forces all fetched values (except &null;) to be treated as strings.
- &null; values remain unchanged unless PDO::ATTR_ORACLE_NULLS
+ Forces all fetched values (except null) to be treated as strings.
+ null values remain unchanged unless PDO::ATTR_ORACLE_NULLS
is set to PDO::NULL_TO_STRING.
diff --git a/reference/pdo_cubrid/pdo_overloaded/cubrid-schema.xml b/reference/pdo_cubrid/pdo_overloaded/cubrid-schema.xml
index da5af0ff7cef..56427bf8707c 100644
--- a/reference/pdo_cubrid/pdo_overloaded/cubrid-schema.xml
+++ b/reference/pdo_cubrid/pdo_overloaded/cubrid-schema.xml
@@ -439,7 +439,7 @@
Array containing the schema information, when process is successful;
- FALSE, when process is unsuccessful
+ false, when process is unsuccessful
diff --git a/reference/pgsql/functions/pg-fetch-array.xml b/reference/pgsql/functions/pg-fetch-array.xml
index 57dc884ae83b..f44c5de4ef0b 100644
--- a/reference/pgsql/functions/pg-fetch-array.xml
+++ b/reference/pgsql/functions/pg-fetch-array.xml
@@ -69,7 +69,7 @@
associatively (indexed by field name), or both.
Each value in the array is represented as a
string. Database NULL
- values are returned as &null;.
+ values are returned as null.
&false; is returned if row exceeds the number
@@ -123,7 +123,7 @@ echo $arr[1] . " <- Row 1 E-mail\n";
// The row parameter is optional; NULL can be passed instead,
// to pass a result_type. Successive calls to pg_fetch_array
// will return the next row.
-$arr = pg_fetch_array($result, NULL, PGSQL_ASSOC);
+$arr = pg_fetch_array($result, null, PGSQL_ASSOC);
echo $arr["author"] . " <- Row 2 Author\n";
echo $arr["email"] . " <- Row 2 E-mail\n";
diff --git a/reference/pgsql/functions/pg-fetch-assoc.xml b/reference/pgsql/functions/pg-fetch-assoc.xml
index e32004de1f6e..82c4a4ffcf46 100644
--- a/reference/pgsql/functions/pg-fetch-assoc.xml
+++ b/reference/pgsql/functions/pg-fetch-assoc.xml
@@ -62,7 +62,7 @@
An array indexed associatively (by field name).
Each value in the array is represented as a
string. Database NULL
- values are returned as &null;.
+ values are returned as null.
&false; is returned if row exceeds the number
diff --git a/reference/pgsql/functions/pg-fetch-object.xml b/reference/pgsql/functions/pg-fetch-object.xml
index 7e82297e9dd4..c4468c02440f 100644
--- a/reference/pgsql/functions/pg-fetch-object.xml
+++ b/reference/pgsql/functions/pg-fetch-object.xml
@@ -77,7 +77,7 @@
An object with one attribute for each field
name in the result. Database NULL
- values are returned as &null;.
+ values are returned as null.
&false; is returned if row exceeds the number
diff --git a/reference/pgsql/functions/pg-fetch-result.xml b/reference/pgsql/functions/pg-fetch-result.xml
index 9aff3164124d..0e7ef4b27f24 100644
--- a/reference/pgsql/functions/pg-fetch-result.xml
+++ b/reference/pgsql/functions/pg-fetch-result.xml
@@ -71,7 +71,7 @@
other types, including arrays are returned as strings formatted
in the same default PostgreSQL manner that you would see in the
psql program. Database NULL
- values are returned as &null;.
+ values are returned as null.
&false; is returned if row exceeds the number
diff --git a/reference/pgsql/functions/pg-fetch-row.xml b/reference/pgsql/functions/pg-fetch-row.xml
index cedd272941d0..a8b1af969b73 100644
--- a/reference/pgsql/functions/pg-fetch-row.xml
+++ b/reference/pgsql/functions/pg-fetch-row.xml
@@ -56,7 +56,7 @@
An array, indexed from 0 upwards, with each value
represented as a string. Database NULL
- values are returned as &null;.
+ values are returned as null.
&false; is returned if row exceeds the number
diff --git a/reference/pgsql/functions/pg-query-params.xml b/reference/pgsql/functions/pg-query-params.xml
index 951d18bd6e7c..db69cc28e62a 100644
--- a/reference/pgsql/functions/pg-query-params.xml
+++ b/reference/pgsql/functions/pg-query-params.xml
@@ -31,7 +31,7 @@
query string as $1, $2, etc. The same parameter may
appear more than once in the query; the same value
will be used in that case. params specifies the
- actual values of the parameters. A &null; value in this array means the
+ actual values of the parameters. A null value in this array means the
corresponding parameter is SQL NULL.
diff --git a/reference/rar/examples.xml b/reference/rar/examples.xml
index 715fb4a24591..50755589ecf6 100644
--- a/reference/rar/examples.xml
+++ b/reference/rar/examples.xml
@@ -20,11 +20,11 @@ if (!array_key_exists("i", $_GET) || !is_numeric($_GET["i"]))
$index = (int) $_GET["i"];
$arch = RarArchive::open("example.rar");
-if ($arch === FALSE)
+if ($arch === false)
die("Cannot open example.rar");
$entries = $arch->getEntries();
-if ($entries === FALSE)
+if ($entries === false)
die("Cannot retrieve entries");
if (!array_key_exists($index, $entries))
@@ -39,7 +39,7 @@ $filesize = $entries[$index]->getUnpackedSize();
* "Last modified" header */
$fp = $entries[$index]->getStream();
-if ($fp === FALSE)
+if ($fp === false)
die("Cannot open file with index $index insided the archive.");
$arch->close(); //no longer needed; stream is independent
diff --git a/reference/rar/rararchive/getentries.xml b/reference/rar/rararchive/getentries.xml
index ef7f9869af36..4b3d96230eca 100644
--- a/reference/rar/rararchive/getentries.xml
+++ b/reference/rar/rararchive/getentries.xml
@@ -92,11 +92,11 @@
getEntries();
-if ($rar_entries === FALSE)
+if ($rar_entries === false)
die("Could not retrieve entries.");
echo "Found " . count($rar_entries) . " entries.\n";
@@ -126,11 +126,11 @@ RarEntry for file "unrardll.txt" (2ed64b6e)
getEntry('tese.txt');
-if ($rar_entry === FALSE)
+if ($rar_entry === false)
die("Could not get such entry");
echo get_class($rar_entry)."\n";
echo $rar_entry;
@@ -102,10 +102,10 @@ RarEntry for file "tese.txt" (23b93a7a)
public static RarArchivefalseRarArchive::open
stringfilename
- stringpasswordNULL
- callablevolume_callbackNULL
+ stringpasswordnull
+ callablevolume_callbacknull
&style.procedural;:
RarArchivefalserar_open
stringfilename
- stringpasswordNULL
- callablevolume_callbackNULL
+ stringpasswordnull
+ callablevolume_callbacknull
Open specified RAR archive and return RarArchive instance representing it.
@@ -124,11 +124,11 @@
getEntries();
-if ($entries === FALSE)
+if ($entries === false)
die("Failed fetching entries");
echo "Found " . count($entries) . " files.\n";
@@ -137,7 +137,7 @@ if (empty($entries))
die("No valid entries found.");
$stream = reset($entries)->getStream();
-if ($stream === FALSE)
+if ($stream === false)
die("Failed opening first file");
$rar_arch->close();
@@ -166,11 +166,11 @@ Encrypted file 1 contents.
getStream();
-if ($stream === FALSE)
+if ($stream === false)
die("Failed opening first file");
rar_close($rar_arch);
diff --git a/reference/rar/rarentry/extract.xml b/reference/rar/rarentry/extract.xml
index 35f25d0fb801..52b93a17fdca 100644
--- a/reference/rar/rarentry/extract.xml
+++ b/reference/rar/rarentry/extract.xml
@@ -12,7 +12,7 @@
public boolRarEntry::extract
stringdir
stringfilepath""
- stringpasswordNULL
+ stringpasswordnull
boolextended_data&false;
diff --git a/reference/readline/functions/readline-callback-handler-install.xml b/reference/readline/functions/readline-callback-handler-install.xml
index d1ae71772a8e..47753255c0b5 100644
--- a/reference/readline/functions/readline-callback-handler-install.xml
+++ b/reference/readline/functions/readline-callback-handler-install.xml
@@ -88,8 +88,8 @@ $prompting = true;
readline_callback_handler_install("[$c] Enter something: ", 'rl_callback');
while ($prompting) {
- $w = NULL;
- $e = NULL;
+ $w = null;
+ $e = null;
$n = stream_select($r = array(STDIN), $w, $e, null);
if ($n && in_array(STDIN, $r)) {
// read a character, will call the callback when a newline is entered
diff --git a/reference/reflection/reflectionclass/construct.xml b/reference/reflection/reflectionclass/construct.xml
index c40e783cc0ab..2b2389c18431 100644
--- a/reference/reflection/reflectionclass/construct.xml
+++ b/reference/reflection/reflectionclass/construct.xml
@@ -75,7 +75,7 @@ Class [ class Exception implements Stringable, Throwable ] {
Property [ protected string $file = '' ]
Property [ protected int $line = 0 ]
Property [ private array $trace = [] ]
- Property [ private ?Throwable $previous = NULL ]
+ Property [ private ?Throwable $previous = null ]
}
- Methods [11] {
diff --git a/reference/reflection/reflectionmethod/construct.xml b/reference/reflection/reflectionmethod/construct.xml
index 23ba43556a88..f3be7170c165 100644
--- a/reference/reflection/reflectionmethod/construct.xml
+++ b/reference/reflection/reflectionmethod/construct.xml
@@ -131,7 +131,7 @@ if ($statics= $method->getStaticVariables()) {
// Invoke the method
printf("---> Invocation results in: ");
-var_dump($method->invoke(NULL));
+var_dump($method->invoke(null));
?>
]]>
diff --git a/reference/seaslog/seaslog/alert.xml b/reference/seaslog/seaslog/alert.xml
index d3e33adcba71..ff0b740169a5 100644
--- a/reference/seaslog/seaslog/alert.xml
+++ b/reference/seaslog/seaslog/alert.xml
@@ -54,7 +54,7 @@
The `logger` cased by the third param would be used right this right now,
like a temp logger, when the function SeasLog::setLogger() called in pre content.
- If `logger` NULL or "", SeasLog will use lastest logger setted by SeasLog::setLogger.
+ If `logger` null or "", SeasLog will use lastest logger setted by SeasLog::setLogger.
@@ -64,7 +64,7 @@
&reftitle.returnvalues;
- Return TRUE on record log information success, FALSE on failure.
+ Return true on record log information success, false on failure.
diff --git a/reference/seaslog/seaslog/analyzercount.xml b/reference/seaslog/seaslog/analyzercount.xml
index 36073556144f..0f32b4f64732 100644
--- a/reference/seaslog/seaslog/analyzercount.xml
+++ b/reference/seaslog/seaslog/analyzercount.xml
@@ -77,7 +77,7 @@ $countResult2 = SeasLog::analyzerCount(SEASLOG_DEBUG);
$countResult3 = SeasLog::analyzerCount(SEASLOG_ERROR,date('Ymd',time()));
//with `level` and `key_word`
-$countResult4 = SeasLog::analyzerCount(SEASLOG_DEBUG,NULL,'accessToken');
+$countResult4 = SeasLog::analyzerCount(SEASLOG_DEBUG,null,'accessToken');
var_dump($countResult1,$countResult2,$countResult3,$countResult4);
diff --git a/reference/seaslog/seaslog/analyzerdetail.xml b/reference/seaslog/seaslog/analyzerdetail.xml
index 55e3a0875686..35bfa7c7c12c 100644
--- a/reference/seaslog/seaslog/analyzerdetail.xml
+++ b/reference/seaslog/seaslog/analyzerdetail.xml
@@ -91,7 +91,7 @@
Return results as array.
- When `start`,`limit` is not NULL and in Windows,
+ When `start`,`limit` is not null and in Windows,
SeasLog will threw exception with message 'Param start and limit don't support Windows'.
diff --git a/reference/seaslog/seaslog/closeloggerstream.xml b/reference/seaslog/seaslog/closeloggerstream.xml
index 377f7f0c9705..46073c5eddcd 100644
--- a/reference/seaslog/seaslog/closeloggerstream.xml
+++ b/reference/seaslog/seaslog/closeloggerstream.xml
@@ -51,7 +51,7 @@
&reftitle.returnvalues;
- Return TRUE on released stream flow success, FALSE on failure.
+ Return true on released stream flow success, false on failure.
diff --git a/reference/seaslog/seaslog/critical.xml b/reference/seaslog/seaslog/critical.xml
index 90567b7e28cb..d42138d86de1 100644
--- a/reference/seaslog/seaslog/critical.xml
+++ b/reference/seaslog/seaslog/critical.xml
@@ -53,7 +53,7 @@
The `logger` cased by the third param would be used right this right now,
like a temp logger, when the function SeasLog::setLogger() called in pre content.
- If `logger` NULL or "", SeasLog will use lastest logger setted by SeasLog::setLogger.
+ If `logger` null or "", SeasLog will use lastest logger setted by SeasLog::setLogger.
@@ -63,7 +63,7 @@
&reftitle.returnvalues;
- Return TRUE on record log information success, FALSE on failure.
+ Return true on record log information success, false on failure.
diff --git a/reference/seaslog/seaslog/debug.xml b/reference/seaslog/seaslog/debug.xml
index 9f69c914c875..38532c082499 100644
--- a/reference/seaslog/seaslog/debug.xml
+++ b/reference/seaslog/seaslog/debug.xml
@@ -53,7 +53,7 @@
The `logger` cased by the third param would be used right this right now,
like a temp logger, when the function SeasLog::setLogger() called in pre content.
- If `logger` NULL or "", SeasLog will use lastest logger setted by SeasLog::setLogger.
+ If `logger` null or "", SeasLog will use lastest logger setted by SeasLog::setLogger.
@@ -63,7 +63,7 @@
&reftitle.returnvalues;
- Return TRUE on record log information success, FALSE on failure.
+ Return true on record log information success, false on failure.
diff --git a/reference/seaslog/seaslog/emergency.xml b/reference/seaslog/seaslog/emergency.xml
index f5e52a7415f6..aab48c0d0d3d 100644
--- a/reference/seaslog/seaslog/emergency.xml
+++ b/reference/seaslog/seaslog/emergency.xml
@@ -53,7 +53,7 @@
The `logger` cased by the third param would be used right this right now,
like a temp logger, when the function SeasLog::setLogger() called in pre content.
- If `logger` NULL or "", SeasLog will use lastest logger setted by SeasLog::setLogger.
+ If `logger` null or "", SeasLog will use lastest logger setted by SeasLog::setLogger.
@@ -63,7 +63,7 @@
&reftitle.returnvalues;
- Return TRUE on record log information success, FALSE on failure.
+ Return true on record log information success, false on failure.
diff --git a/reference/seaslog/seaslog/error.xml b/reference/seaslog/seaslog/error.xml
index e0edf40edaef..68775ed29992 100644
--- a/reference/seaslog/seaslog/error.xml
+++ b/reference/seaslog/seaslog/error.xml
@@ -53,7 +53,7 @@
The `logger` cased by the third param would be used right this right now,
like a temp logger, when the function SeasLog::setLogger() called in pre content.
- If `logger` NULL or "", SeasLog will use lastest logger setted by SeasLog::setLogger.
+ If `logger` null or "", SeasLog will use lastest logger setted by SeasLog::setLogger.
@@ -63,7 +63,7 @@
&reftitle.returnvalues;
- Return TRUE on record log information success, FALSE on failure.
+ Return true on record log information success, false on failure.
diff --git a/reference/seaslog/seaslog/flushbuffer.xml b/reference/seaslog/seaslog/flushbuffer.xml
index 66d03b7d8e8f..5df5a0b3ca40 100644
--- a/reference/seaslog/seaslog/flushbuffer.xml
+++ b/reference/seaslog/seaslog/flushbuffer.xml
@@ -36,7 +36,7 @@
&reftitle.returnvalues;
- Return TRUE on flush buffer success, FALSE on failure.
+ Return true on flush buffer success, false on failure.
diff --git a/reference/seaslog/seaslog/getbufferenabled.xml b/reference/seaslog/seaslog/getbufferenabled.xml
index b22b0b53fa36..fa61c3cc5d66 100644
--- a/reference/seaslog/seaslog/getbufferenabled.xml
+++ b/reference/seaslog/seaslog/getbufferenabled.xml
@@ -28,7 +28,7 @@
&reftitle.returnvalues;
- Return TRUE on seaslog.use_buffer is true.
+ Return true on seaslog.use_buffer is true.
If switch seaslog.buffer_disabled_in_cli on, and running in cli,
seaslog.use_buffer setting will be discarded, Seaslog write to the Data Store IMMEDIATELY.
diff --git a/reference/seaslog/seaslog/getrequestvariable.xml b/reference/seaslog/seaslog/getrequestvariable.xml
index 3e7fa055d62e..7198fc431a97 100644
--- a/reference/seaslog/seaslog/getrequestvariable.xml
+++ b/reference/seaslog/seaslog/getrequestvariable.xml
@@ -68,7 +68,7 @@ var_dump($oSeasLog->setRequestVariable(SEASLOG_REQUEST_VARIABLE_REQUEST_URI, $sR
var_dump($oSeasLog->setRequestVariable(SEASLOG_REQUEST_VARIABLE_REQUEST_METHOD, $sRequestMethod));
var_dump($oSeasLog->setRequestVariable(SEASLOG_REQUEST_VARIABLE_CLIENT_IP, $sClientIp));
-var_dump($oSeasLog->setRequestVariable($iErrorKey,NULL));
+var_dump($oSeasLog->setRequestVariable($iErrorKey,null));
var_dump($oSeasLog->getRequestVariable(SEASLOG_REQUEST_VARIABLE_DOMAIN_PORT) == $sDomainPort);
var_dump($oSeasLog->getRequestVariable(SEASLOG_REQUEST_VARIABLE_REQUEST_URI) == $sRequestUri);
diff --git a/reference/seaslog/seaslog/info.xml b/reference/seaslog/seaslog/info.xml
index 1d0de2180b43..1189369920ed 100644
--- a/reference/seaslog/seaslog/info.xml
+++ b/reference/seaslog/seaslog/info.xml
@@ -53,7 +53,7 @@
The `logger` cased by the third param would be used right this right now,
like a temp logger, when the function SeasLog::setLogger() called in pre content.
- If `logger` NULL or "", SeasLog will use lastest logger setted by SeasLog::setLogger.
+ If `logger` null or "", SeasLog will use lastest logger setted by SeasLog::setLogger.
@@ -63,7 +63,7 @@
&reftitle.returnvalues;
- Return TRUE on record log information success, FALSE on failure.
+ Return true on record log information success, false on failure.
diff --git a/reference/seaslog/seaslog/log.xml b/reference/seaslog/seaslog/log.xml
index 67ee0d98a132..aa66cf64c325 100644
--- a/reference/seaslog/seaslog/log.xml
+++ b/reference/seaslog/seaslog/log.xml
@@ -68,7 +68,7 @@
The `logger` cased by the third param would be used right this right now,
like a temp logger, when the function SeasLog::setLogger() called in pre content.
- If `logger` NULL or "", SeasLog will use lastest logger setted by SeasLog::setLogger.
+ If `logger` null or "", SeasLog will use lastest logger setted by SeasLog::setLogger.
@@ -78,7 +78,7 @@
&reftitle.returnvalues;
- Return TRUE on record log information success, FALSE on failure.
+ Return true on record log information success, false on failure.
diff --git a/reference/seaslog/seaslog/notice.xml b/reference/seaslog/seaslog/notice.xml
index 3952667d3af9..607603a31ce4 100644
--- a/reference/seaslog/seaslog/notice.xml
+++ b/reference/seaslog/seaslog/notice.xml
@@ -53,7 +53,7 @@
The `logger` cased by the third param would be used right this right now,
like a temp logger, when the function SeasLog::setLogger() called in pre content.
- If `logger` NULL or "", SeasLog will use lastest logger setted by SeasLog::setLogger.
+ If `logger` null or "", SeasLog will use lastest logger setted by SeasLog::setLogger.
@@ -63,7 +63,7 @@
&reftitle.returnvalues;
- Return TRUE on record log information success, FALSE on failure.
+ Return true on record log information success, false on failure.
diff --git a/reference/seaslog/seaslog/setbasepath.xml b/reference/seaslog/seaslog/setbasepath.xml
index 8c9f51ce97ec..57bbb37ceb6f 100644
--- a/reference/seaslog/seaslog/setbasepath.xml
+++ b/reference/seaslog/seaslog/setbasepath.xml
@@ -36,7 +36,7 @@
&reftitle.returnvalues;
- Return TRUE on setted base path success, FALSE on failure.
+ Return true on setted base path success, false on failure.
diff --git a/reference/seaslog/seaslog/setdatetimeformat.xml b/reference/seaslog/seaslog/setdatetimeformat.xml
index 48c889a74e44..c3a674901799 100644
--- a/reference/seaslog/seaslog/setdatetimeformat.xml
+++ b/reference/seaslog/seaslog/setdatetimeformat.xml
@@ -38,7 +38,7 @@
&reftitle.returnvalues;
- Return TRUE on setted datetime format success, FALSE on failure.
+ Return true on setted datetime format success, false on failure.
diff --git a/reference/seaslog/seaslog/setlogger.xml b/reference/seaslog/seaslog/setlogger.xml
index ae7ecd242b89..4a661eb7c8b5 100644
--- a/reference/seaslog/seaslog/setlogger.xml
+++ b/reference/seaslog/seaslog/setlogger.xml
@@ -38,7 +38,7 @@
&reftitle.returnvalues;
- Return TRUE on created logger disectory success, FALSE on failure.
+ Return true on created logger disectory success, false on failure.
diff --git a/reference/seaslog/seaslog/setrequestid.xml b/reference/seaslog/seaslog/setrequestid.xml
index 9ef616959235..0f6e8182d474 100644
--- a/reference/seaslog/seaslog/setrequestid.xml
+++ b/reference/seaslog/seaslog/setrequestid.xml
@@ -38,7 +38,7 @@
&reftitle.returnvalues;
- Return TRUE on set request_id success, FALSE on failure.
+ Return true on set request_id success, false on failure.
diff --git a/reference/seaslog/seaslog/setrequestvariable.xml b/reference/seaslog/seaslog/setrequestvariable.xml
index ee92dd299606..68c5e9fea6b2 100644
--- a/reference/seaslog/seaslog/setrequestvariable.xml
+++ b/reference/seaslog/seaslog/setrequestvariable.xml
@@ -51,7 +51,7 @@
&reftitle.returnvalues;
- Return TRUE on set success, FALSE on failure.
+ Return true on set success, false on failure.
@@ -77,7 +77,7 @@ var_dump($oSeasLog->setRequestVariable(SEASLOG_REQUEST_VARIABLE_REQUEST_URI, $sR
var_dump($oSeasLog->setRequestVariable(SEASLOG_REQUEST_VARIABLE_REQUEST_METHOD, $sRequestMethod));
var_dump($oSeasLog->setRequestVariable(SEASLOG_REQUEST_VARIABLE_CLIENT_IP, $sClientIp));
-var_dump($oSeasLog->setRequestVariable($iErrorKey,NULL));
+var_dump($oSeasLog->setRequestVariable($iErrorKey,null));
var_dump($oSeasLog->getRequestVariable(SEASLOG_REQUEST_VARIABLE_DOMAIN_PORT) == $sDomainPort);
var_dump($oSeasLog->getRequestVariable(SEASLOG_REQUEST_VARIABLE_REQUEST_URI) == $sRequestUri);
diff --git a/reference/seaslog/seaslog/warning.xml b/reference/seaslog/seaslog/warning.xml
index c503c4fd318b..a86245b8f659 100644
--- a/reference/seaslog/seaslog/warning.xml
+++ b/reference/seaslog/seaslog/warning.xml
@@ -54,7 +54,7 @@
The `logger` cased by the third param would be used right this right now,
like a temp logger, when the function SeasLog::setLogger() called in pre content.
- If `logger` NULL or "", SeasLog will use lastest logger setted by SeasLog::setLogger.
+ If `logger` null or "", SeasLog will use lastest logger setted by SeasLog::setLogger.
@@ -64,7 +64,7 @@
&reftitle.returnvalues;
- Return TRUE on record log information success, FALSE on failure.
+ Return true on record log information success, false on failure.
diff --git a/reference/simplexml/simplexmlelement/children.xml b/reference/simplexml/simplexmlelement/children.xml
index 28ccfbb8badd..dadbf64aa0e2 100644
--- a/reference/simplexml/simplexmlelement/children.xml
+++ b/reference/simplexml/simplexmlelement/children.xml
@@ -115,13 +115,13 @@ $sxe = new SimpleXMLElement($xml);
$kids = $sxe->children('foo');
var_dump(count($kids));
-$kids = $sxe->children('foo', TRUE);
+$kids = $sxe->children('foo', true);
var_dump(count($kids));
$kids = $sxe->children('my.foo.urn');
var_dump(count($kids));
-$kids = $sxe->children('my.foo.urn', TRUE);
+$kids = $sxe->children('my.foo.urn', true);
var_dump(count($kids));
$kids = $sxe->children();
diff --git a/reference/simplexml/simplexmlelement/getDocNamespaces.xml b/reference/simplexml/simplexmlelement/getDocNamespaces.xml
index 7d17fe92d94f..716bf5475f71 100644
--- a/reference/simplexml/simplexmlelement/getDocNamespaces.xml
+++ b/reference/simplexml/simplexmlelement/getDocNamespaces.xml
@@ -108,7 +108,7 @@ XML;
$sxe = new SimpleXMLElement($xml);
-$namespaces = $sxe->getDocNamespaces(TRUE);
+$namespaces = $sxe->getDocNamespaces(true);
var_dump($namespaces);
?>
diff --git a/reference/snmp/snmp/walk.xml b/reference/snmp/snmp/walk.xml
index 275d62684698..51b34b6c8aa6 100644
--- a/reference/snmp/snmp/walk.xml
+++ b/reference/snmp/snmp/walk.xml
@@ -115,9 +115,9 @@ Array
valueretrieval = SNMP_VALUE_PLAIN;
- $ifDescr = $session->walk(".1.3.6.1.2.1.2.2.1.2", TRUE);
+ $ifDescr = $session->walk(".1.3.6.1.2.1.2.2.1.2", true);
$session->valueretrieval = SNMP_VALUE_LIBRARY;
- $ifType = $session->walk(".1.3.6.1.2.1.2.2.1.3", TRUE);
+ $ifType = $session->walk(".1.3.6.1.2.1.2.2.1.3", true);
print_r($ifDescr);
print_r($ifType);
$result = array();
diff --git a/reference/soap/soapclient/soapcall.xml b/reference/soap/soapclient/soapcall.xml
index d8ac2323b497..99b1d3e8f8bb 100644
--- a/reference/soap/soapclient/soapcall.xml
+++ b/reference/soap/soapclient/soapcall.xml
@@ -119,7 +119,7 @@ $client = new SoapClient("some.wsdl");
$client->SomeFunction($a, $b, $c);
$client->__soapCall("SomeFunction", array($a, $b, $c));
-$client->__soapCall("SomeFunction", array($a, $b, $c), NULL,
+$client->__soapCall("SomeFunction", array($a, $b, $c), null,
new SoapHeader(), $output_headers);
diff --git a/reference/soap/soapserver/getfunctions.xml b/reference/soap/soapserver/getfunctions.xml
index 979071e84553..7edb085551dd 100644
--- a/reference/soap/soapserver/getfunctions.xml
+++ b/reference/soap/soapserver/getfunctions.xml
@@ -40,7 +40,7 @@
"http://test-uri"));
+$server = new SoapServer(null, array("uri" => "http://test-uri"));
$server->addFunction(SOAP_FUNCTIONS_ALL);
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$server->handle();
diff --git a/reference/sockets/functions/socket-select.xml b/reference/sockets/functions/socket-select.xml
index 6ce55910d45a..90fe8617872a 100644
--- a/reference/sockets/functions/socket-select.xml
+++ b/reference/sockets/functions/socket-select.xml
@@ -107,7 +107,7 @@
]]>
@@ -136,7 +136,7 @@ socket_select($r, $w, $e, 0);
valid()) {
$iterator->next();
}
-$iterator->valid(); // FALSE
+$iterator->valid(); // false
$iterator->rewind();
-$iterator->valid(); // TRUE
+$iterator->valid(); // true
?>
]]>
diff --git a/reference/spl/functions/iterator-apply.xml b/reference/spl/functions/iterator-apply.xml
index 809eb83e1cd5..e84d15af5631 100644
--- a/reference/spl/functions/iterator-apply.xml
+++ b/reference/spl/functions/iterator-apply.xml
@@ -80,7 +80,7 @@
current()) . "\n";
- return TRUE;
+ return true;
}
$it = new ArrayIterator(array("Apples", "Bananas", "Cherries"));
diff --git a/reference/spl/recursivecallbackfilteriterator.xml b/reference/spl/recursivecallbackfilteriterator.xml
index 231d7498393f..35e9eea4fb82 100644
--- a/reference/spl/recursivecallbackfilteriterator.xml
+++ b/reference/spl/recursivecallbackfilteriterator.xml
@@ -77,7 +77,7 @@
* @param $current Current item's value
* @param $key Current item's key
* @param $iterator Iterator being filtered
- * @return boolean TRUE to accept the current item, FALSE otherwise
+ * @return boolean true to accept the current item, false otherwise
*/
function my_callback($current, $key, $iterator) {
// Your filtering code here
@@ -106,13 +106,13 @@ $dir = new RecursiveDirectoryIterator(__DIR__);
$files = new RecursiveCallbackFilterIterator($dir, function ($current, $key, $iterator) {
// Allow recursion
if ($iterator->hasChildren()) {
- return TRUE;
+ return true;
}
// Check for large file
if ($current->isFile() && $current->getSize() > 104857600) {
- return TRUE;
+ return true;
}
- return FALSE;
+ return false;
});
foreach (new RecursiveIteratorIterator($files) as $file) {
diff --git a/reference/spl/recursivecallbackfilteriterator/haschildren.xml b/reference/spl/recursivecallbackfilteriterator/haschildren.xml
index 5f8d61095c3d..8b53d412e9a8 100644
--- a/reference/spl/recursivecallbackfilteriterator/haschildren.xml
+++ b/reference/spl/recursivecallbackfilteriterator/haschildren.xml
@@ -44,13 +44,13 @@ $dir = new RecursiveDirectoryIterator(__DIR__);
$files = new RecursiveCallbackFilterIterator($dir, function ($current, $key, $iterator) {
// Allow recursion into directories
if ($iterator->hasChildren()) {
- return TRUE;
+ return true;
}
// Check for XML file
if (!strcasecmp($current->getExtension(), 'xml')) {
- return TRUE;
+ return true;
}
- return FALSE;
+ return false;
});
?>
diff --git a/reference/spl/recursivefilteriterator/construct.xml b/reference/spl/recursivefilteriterator/construct.xml
index 82ca66faba2b..4151b7bf79cd 100644
--- a/reference/spl/recursivefilteriterator/construct.xml
+++ b/reference/spl/recursivefilteriterator/construct.xml
@@ -46,7 +46,7 @@ class TestsOnlyFilter extends RecursiveFilterIterator {
public function accept() {
// Accept the current item if we can recurse into it
// or it is a value starting with "test"
- return $this->hasChildren() || (strpos($this->current(), "test") !== FALSE);
+ return $this->hasChildren() || (strpos($this->current(), "test") !== false);
}
}
diff --git a/reference/spl/splobjectstorage/attach.xml b/reference/spl/splobjectstorage/attach.xml
index 83ca9883cc1e..fe4bd86971eb 100644
--- a/reference/spl/splobjectstorage/attach.xml
+++ b/reference/spl/splobjectstorage/attach.xml
@@ -65,7 +65,7 @@
$o1 = new stdClass;
$o2 = new stdClass;
$s = new SplObjectStorage();
-$s->attach($o1); // similar to $s[$o1] = NULL;
+$s->attach($o1); // similar to $s[$o1] = null;
$s->attach($o2, "hello"); // similar to $s[$o2] = "hello";
var_dump($s[$o1]);
diff --git a/reference/sqlite3/sqlite3result/fetcharray.xml b/reference/sqlite3/sqlite3result/fetcharray.xml
index 656e5adeefaf..95b53700c54e 100644
--- a/reference/sqlite3/sqlite3result/fetcharray.xml
+++ b/reference/sqlite3/sqlite3result/fetcharray.xml
@@ -72,7 +72,7 @@
as follows: integers are mapped to int if they fit into the
range PHP_INT_MIN..PHP_INT_MAX, and
to string otherwise. Floats are mapped to float,
- NULL values are mapped to null, and strings
+ null values are mapped to null, and strings
and blobs are mapped to string.
diff --git a/reference/sqlite3/sqlite3stmt/getsql.xml b/reference/sqlite3/sqlite3stmt/getsql.xml
index 4e831a54481a..54cb194f07f5 100644
--- a/reference/sqlite3/sqlite3stmt/getsql.xml
+++ b/reference/sqlite3/sqlite3stmt/getsql.xml
@@ -70,7 +70,7 @@ var_dump($stmt->getSQL(true));
&example.outputs.similar;
diff --git a/reference/stream/functions/stream-select.xml b/reference/stream/functions/stream-select.xml
index fde9da1739f0..265d63b153de 100644
--- a/reference/stream/functions/stream-select.xml
+++ b/reference/stream/functions/stream-select.xml
@@ -168,8 +168,8 @@
0) {
@@ -194,7 +194,7 @@ if (false === ($num_changed_streams = stream_select($read, $write, $except, 0)))
]]>
@@ -209,7 +209,7 @@ stream_select($r, $w, $e, 0);
&reftitle.returnvalues;
- Returns TRUE if the offset exists, otherwise FALSE.
+ Returns true if the offset exists, otherwise false.
diff --git a/reference/swoole/swoole/connection/iterator/valid.xml b/reference/swoole/swoole/connection/iterator/valid.xml
index f4214f05fe8b..72c10d548989 100644
--- a/reference/swoole/swoole/connection/iterator/valid.xml
+++ b/reference/swoole/swoole/connection/iterator/valid.xml
@@ -27,7 +27,7 @@
&reftitle.returnvalues;
- Returns TRUE if the current iterator position is valid, otherwise FALSE.
+ Returns true if the current iterator position is valid, otherwise false.
diff --git a/reference/swoole/swoole/process/signal.xml b/reference/swoole/swoole/process/signal.xml
index b82b967c21dd..779076f348b8 100644
--- a/reference/swoole/swoole/process/signal.xml
+++ b/reference/swoole/swoole/process/signal.xml
@@ -45,7 +45,7 @@
&reftitle.returnvalues;
- If signal sent successfully, it returns TRUE, otherwise it returns FALSE.
+ If signal sent successfully, it returns true, otherwise it returns false.
diff --git a/reference/sync/syncreaderwriter/construct.xml b/reference/sync/syncreaderwriter/construct.xml
index 92489f5fab67..dc544b3c1ee1 100644
--- a/reference/sync/syncreaderwriter/construct.xml
+++ b/reference/sync/syncreaderwriter/construct.xml
@@ -51,7 +51,7 @@
- If an object is: A named reader-writer with an autounlock of FALSE, the
+ If an object is: A named reader-writer with an autounlock of false, the
object is locked for either reading or writing, and the PHP script concludes
before the object is unlocked, then the underlying objects will end up in an
inconsistent state.
diff --git a/reference/taint/functions/is-tainted.xml b/reference/taint/functions/is-tainted.xml
index dfc535fbd273..ebad0437d65e 100644
--- a/reference/taint/functions/is-tainted.xml
+++ b/reference/taint/functions/is-tainted.xml
@@ -36,7 +36,7 @@
&reftitle.returnvalues;
- Return TRUE if the string is tainted, FALSE otherwise.
+ Return true if the string is tainted, false otherwise.
diff --git a/reference/taint/functions/taint.xml b/reference/taint/functions/taint.xml
index 8e47a39a2750..39c183cb0779 100644
--- a/reference/taint/functions/taint.xml
+++ b/reference/taint/functions/taint.xml
@@ -43,7 +43,7 @@
&reftitle.returnvalues;
- Return TRUE if the transformation is done. Always return TRUE if the taint
+ Return true if the transformation is done. Always return false if the taint
extension is not enabled.
diff --git a/reference/tidy/tidy/getconfig.xml b/reference/tidy/tidy/getconfig.xml
index ee57f755ecaa..8b2cea7151a3 100644
--- a/reference/tidy/tidy/getconfig.xml
+++ b/reference/tidy/tidy/getconfig.xml
@@ -59,8 +59,8 @@
test';
-$config = array('indent' => TRUE,
- 'output-xhtml' => TRUE,
+$config = array('indent' => true,
+ 'output-xhtml' => true,
'wrap' => 200);
$tidy = tidy_parse_string($html, $config);
diff --git a/reference/tidy/tidy/parsestring.xml b/reference/tidy/tidy/parsestring.xml
index 8d70b7e995c4..8f84e3d35a74 100644
--- a/reference/tidy/tidy/parsestring.xml
+++ b/reference/tidy/tidy/parsestring.xml
@@ -126,8 +126,8 @@ ob_start();
TRUE,
- 'output-xhtml' => TRUE,
+$config = array('indent' => true,
+ 'output-xhtml' => true,
'wrap' => 200);
$tidy = tidy_parse_string($buffer, $config, 'UTF8');
diff --git a/reference/var/functions/gettype.xml b/reference/var/functions/gettype.xml
index c245732c1638..2c7635198d4e 100644
--- a/reference/var/functions/gettype.xml
+++ b/reference/var/functions/gettype.xml
@@ -109,7 +109,7 @@
diff --git a/reference/var/functions/is-string.xml b/reference/var/functions/is-string.xml
index c5b2035262f6..7680547a0ec7 100644
--- a/reference/var/functions/is-string.xml
+++ b/reference/var/functions/is-string.xml
@@ -60,7 +60,7 @@ foreach ($values as $value) {
]]>
@@ -113,20 +113,20 @@ var_dump(isset($foo)); // FALSE
1, 'hello' => NULL, 'pie' => array('a' => 'apple'));
+$a = array ('test' => 1, 'hello' => null, 'pie' => array('a' => 'apple'));
-var_dump(isset($a['test'])); // TRUE
-var_dump(isset($a['foo'])); // FALSE
-var_dump(isset($a['hello'])); // FALSE
+var_dump(isset($a['test'])); // true
+var_dump(isset($a['foo'])); // false
+var_dump(isset($a['hello'])); // false
// The key 'hello' equals NULL so is considered unset
// If you want to check for NULL key values then try:
-var_dump(array_key_exists('hello', $a)); // TRUE
+var_dump(array_key_exists('hello', $a)); // true
// Checking deeper array values
-var_dump(isset($a['pie']['a'])); // TRUE
-var_dump(isset($a['pie']['b'])); // FALSE
-var_dump(isset($a['cake']['a']['b'])); // FALSE
+var_dump(isset($a['pie']['a'])); // true
+var_dump(isset($a['pie']['b'])); // false
+var_dump(isset($a['cake']['a']['b'])); // false
?>
]]>
diff --git a/reference/wincache/functions/wincache-refresh-if-changed.xml b/reference/wincache/functions/wincache-refresh-if-changed.xml
index a9151b4cec58..8792cbf0f1f6 100644
--- a/reference/wincache/functions/wincache-refresh-if-changed.xml
+++ b/reference/wincache/functions/wincache-refresh-if-changed.xml
@@ -11,7 +11,7 @@
&reftitle.description;
boolwincache_refresh_if_changed
- arrayfilesNULL
+ arrayfilesnull
Refreshes the cache entries for the files, whose names were passed in the input argument.
@@ -60,7 +60,7 @@
');
fclose($handle);
wincache_refresh_if_changed(array($filename));
diff --git a/reference/wincache/functions/wincache-ucache-add.xml b/reference/wincache/functions/wincache-ucache-add.xml
index d18bfd7e34b6..82a742f23b04 100644
--- a/reference/wincache/functions/wincache-ucache-add.xml
+++ b/reference/wincache/functions/wincache-ucache-add.xml
@@ -18,7 +18,7 @@
boolwincache_ucache_add
arrayvalues
- mixedunusedNULL
+ mixedunusednull
intttl0
diff --git a/reference/wincache/functions/wincache-ucache-info.xml b/reference/wincache/functions/wincache-ucache-info.xml
index 0420be82f000..3d9976b6dbeb 100644
--- a/reference/wincache/functions/wincache-ucache-info.xml
+++ b/reference/wincache/functions/wincache-ucache-info.xml
@@ -12,7 +12,7 @@
arrayfalsewincache_ucache_info
boolsummaryonly&false;
- stringkeyNULL
+ stringkeynull
Retrieves information about data stored in the user cache.
diff --git a/reference/wincache/functions/wincache-ucache-set.xml b/reference/wincache/functions/wincache-ucache-set.xml
index d23b3c5a69c0..3427a17bc124 100644
--- a/reference/wincache/functions/wincache-ucache-set.xml
+++ b/reference/wincache/functions/wincache-ucache-set.xml
@@ -18,7 +18,7 @@
boolwincache_ucache_set
arrayvalues
- mixedunusedNULL
+ mixedunusednull
intttl0
diff --git a/reference/xmldiff/xmldiff-dom/diff.xml b/reference/xmldiff/xmldiff-dom/diff.xml
index 0b69101121fe..b842a7278e90 100644
--- a/reference/xmldiff/xmldiff-dom/diff.xml
+++ b/reference/xmldiff/xmldiff-dom/diff.xml
@@ -44,7 +44,7 @@
&reftitle.returnvalues;
- DOMDocument with the diff information or NULL.
+ DOMDocument with the diff information or null.
diff --git a/reference/xmldiff/xmldiff-dom/merge.xml b/reference/xmldiff/xmldiff-dom/merge.xml
index 9e34e6d2fd47..aba43345f976 100644
--- a/reference/xmldiff/xmldiff-dom/merge.xml
+++ b/reference/xmldiff/xmldiff-dom/merge.xml
@@ -44,7 +44,7 @@
&reftitle.returnvalues;
- Merged DOMDocument or NULL.
+ Merged DOMDocument or null.
diff --git a/reference/xmldiff/xmldiff-file/diff.xml b/reference/xmldiff/xmldiff-file/diff.xml
index 35b95c9d91f4..e0deae50357c 100644
--- a/reference/xmldiff/xmldiff-file/diff.xml
+++ b/reference/xmldiff/xmldiff-file/diff.xml
@@ -44,7 +44,7 @@
&reftitle.returnvalues;
- String with the XML document containing the diff information or NULL.
+ String with the XML document containing the diff information or null.
diff --git a/reference/xmldiff/xmldiff-file/merge.xml b/reference/xmldiff/xmldiff-file/merge.xml
index 86793b600687..445efb8bca40 100644
--- a/reference/xmldiff/xmldiff-file/merge.xml
+++ b/reference/xmldiff/xmldiff-file/merge.xml
@@ -44,7 +44,7 @@
&reftitle.returnvalues;
- String with the new XML document or NULL.
+ String with the new XML document or null.
diff --git a/reference/xmldiff/xmldiff-memory/diff.xml b/reference/xmldiff/xmldiff-memory/diff.xml
index b2f791b0b3da..103d1a7733aa 100644
--- a/reference/xmldiff/xmldiff-memory/diff.xml
+++ b/reference/xmldiff/xmldiff-memory/diff.xml
@@ -44,7 +44,7 @@
&reftitle.returnvalues;
- String with the XML document containing the diff information or NULL.
+ String with the XML document containing the diff information or null.
diff --git a/reference/xmldiff/xmldiff-memory/merge.xml b/reference/xmldiff/xmldiff-memory/merge.xml
index 31872fd44263..545c3583419a 100644
--- a/reference/xmldiff/xmldiff-memory/merge.xml
+++ b/reference/xmldiff/xmldiff-memory/merge.xml
@@ -44,7 +44,7 @@
&reftitle.returnvalues;
- String with the new XML document or NULL.
+ String with the new XML document or null.
diff --git a/reference/yaconf/yaconf/get.xml b/reference/yaconf/yaconf/get.xml
index bda9b673e7cf..75d675327e2c 100644
--- a/reference/yaconf/yaconf/get.xml
+++ b/reference/yaconf/yaconf/get.xml
@@ -12,7 +12,7 @@
public static mixedYaconf::get
stringname
- mixeddefault_valueNULL
+ mixeddefault_valuenull
diff --git a/reference/yaf/yaf-plugin-abstract.xml b/reference/yaf/yaf-plugin-abstract.xml
index d0d97022eec9..9bc0f9bf08c5 100644
--- a/reference/yaf/yaf-plugin-abstract.xml
+++ b/reference/yaf/yaf-plugin-abstract.xml
@@ -73,7 +73,7 @@
Class IndexController extends Yaf_Controller_Abstract {
public function indexAction() {
- return FALSE; //prevent rendering
+ return false; //prevent rendering
}
}
diff --git a/reference/yaf/yaf_controller_abstract/forward.xml b/reference/yaf/yaf_controller_abstract/forward.xml
index 3a2d6521f2c6..6e12e51c3367 100644
--- a/reference/yaf/yaf_controller_abstract/forward.xml
+++ b/reference/yaf/yaf_controller_abstract/forward.xml
@@ -45,7 +45,7 @@
module
- destination module name, if NULL was given, then default module name
+ destination module name, if null was given, then default module name
is assumed
@@ -97,7 +97,7 @@ class IndexController extends Yaf_Controller_Abstract
$logined = $_SESSION["login"];
if (!$logined) {
$this->forward("login", array("from" => "Index")); // forward to login action
- return FALSE; // this is important, this finish current working flow
+ return false; // this is important, this finish current working flow
// and tell the Yaf do not doing auto-render
}
diff --git a/reference/yaf/yaf_dispatcher/autorender.xml b/reference/yaf/yaf_dispatcher/autorender.xml
index 7d28115c598a..0e0f8259f719 100644
--- a/reference/yaf/yaf_dispatcher/autorender.xml
+++ b/reference/yaf/yaf_dispatcher/autorender.xml
@@ -66,7 +66,7 @@ class IndexController extends Yaf_Controller_Abstract {
if ($this->getRequest()->isXmlHttpRequest()) {
//do not call render for ajax request
//we will outpu a json string
- Yaf_Dispatcher::getInstance()->autoRender(FALSE);
+ Yaf_Dispatcher::getInstance()->autoRender(false);
}
}
diff --git a/reference/yaf/yaf_dispatcher/catchexception.xml b/reference/yaf/yaf_dispatcher/catchexception.xml
index 7e140c480012..c6f9a0cbe7b3 100644
--- a/reference/yaf/yaf_dispatcher/catchexception.xml
+++ b/reference/yaf/yaf_dispatcher/catchexception.xml
@@ -15,7 +15,7 @@
While the application.dispatcher.throwException is On(you can also calling
- to Yaf_Dispatcher::throwException(TRUE) to enable it), Yaf will throw Exception when
+ to Yaf_Dispatcher::throwException(true) to enable it), Yaf will throw Exception when
error occurs instead of trigger error.
diff --git a/reference/yaf/yaf_dispatcher/setview.xml b/reference/yaf/yaf_dispatcher/setview.xml
index b526b3c8fb03..3dda8fffe9d4 100644
--- a/reference/yaf/yaf_dispatcher/setview.xml
+++ b/reference/yaf/yaf_dispatcher/setview.xml
@@ -168,11 +168,11 @@ class Smarty_Adapter implements Yaf_View_Interface
* @param string $name The template to process.
* @return string The output.
*/
- public function render($name, $value = NULL) {
+ public function render($name, $value = null) {
return $this->_smarty->fetch($name);
}
- public function display($name, $value = NULL) {
+ public function display($name, $value = null) {
echo $this->_smarty->fetch($name);
}
diff --git a/reference/yaf/yaf_plugin_abstract/routershutdown.xml b/reference/yaf/yaf_plugin_abstract/routershutdown.xml
index ce2534443233..bc72c1695c24 100644
--- a/reference/yaf/yaf_plugin_abstract/routershutdown.xml
+++ b/reference/yaf/yaf_plugin_abstract/routershutdown.xml
@@ -68,16 +68,16 @@ class UserInitPlugin extends Yaf_Plugin_Abstract {
if (in_array(strtolower($controller), array(
'api',
))) {
- return TRUE;
+ return true;
}
if (Yaf_Session::getInstance()->has("login")) {
- return TRUE;
+ return true;
}
/* Use access check failed, need to login */
$response->setRedirect("http://yourdomain.com/login/");
- return FALSE;
+ return false;
}
}
?>
diff --git a/reference/yaf/yaf_request_http/getraw.xml b/reference/yaf/yaf_request_http/getraw.xml
index 11db06baa800..66d298d505a5 100644
--- a/reference/yaf/yaf_request_http/getraw.xml
+++ b/reference/yaf/yaf_request_http/getraw.xml
@@ -26,7 +26,7 @@
&reftitle.returnvalues;
- Return string on success, FALSE on failure.
+ Return string on success, false on failure.
diff --git a/reference/yaf/yaf_response_abstract/getbody.xml b/reference/yaf/yaf_response_abstract/getbody.xml
index 004a98a33342..ad4cb0b537d3 100644
--- a/reference/yaf/yaf_response_abstract/getbody.xml
+++ b/reference/yaf/yaf_response_abstract/getbody.xml
@@ -60,7 +60,7 @@ $response->setBody("Hello")->setBody(" World", "footer");
var_dump($response->getBody()); //default
var_dump($response->getBody(Yaf_Response_Abstract::DEFAULT_BODY)); //same as above
var_dump($response->getBody("footer"));
-var_dump($response->getBody(NULL)); //get all
+var_dump($response->getBody(null)); //get all
?>
]]>
diff --git a/reference/yaf/yaf_route_map/construct.xml b/reference/yaf/yaf_route_map/construct.xml
index 09c632cf1cc1..9cdbb2c46c57 100644
--- a/reference/yaf/yaf_route_map/construct.xml
+++ b/reference/yaf/yaf_route_map/construct.xml
@@ -118,7 +118,7 @@ array(
$config = array(
"name" => array(
"type" => "map", //Yaf_Route_Map route
- "controllerPrefer" => FALSE,
+ "controllerPrefer" => false,
"delimiter" => "#!",
),
);
diff --git a/reference/yaf/yaf_view_simple/assignref.xml b/reference/yaf/yaf_view_simple/assignref.xml
index 2aae1f741353..34481b295013 100644
--- a/reference/yaf/yaf_view_simple/assignref.xml
+++ b/reference/yaf/yaf_view_simple/assignref.xml
@@ -68,7 +68,7 @@ class IndexController extends Yaf_Controller_Abstract {
echo $value;
//prevent the auto-render
- Yaf_Dispatcher::getInstance()->autoRender(FALSE);
+ Yaf_Dispatcher::getInstance()->autoRender(false);
}
}
?>
diff --git a/reference/yar/yar_concurrent_client/call.xml b/reference/yar/yar_concurrent_client/call.xml
index 88bfe5f743ff..9136595562a6 100644
--- a/reference/yar/yar_concurrent_client/call.xml
+++ b/reference/yar/yar_concurrent_client/call.xml
@@ -87,9 +87,9 @@ function error_callback($type, $error, $callinfo) {
Yar_Concurrent_Client::call("http://host/api/", "some_method", array("parameters"), "callback");
Yar_Concurrent_Client::call("http://host/api/", "some_method", array("parameters")); // if the callback is not specificed,
// callback in loop will be used
-Yar_Concurrent_Client::call("http://host/api/", "some_method", array("parameters"), "callback", NULL, array(YAR_OPT_PACKAGER => "json"));
+Yar_Concurrent_Client::call("http://host/api/", "some_method", array("parameters"), "callback", null, array(YAR_OPT_PACKAGER => "json"));
//this server accept json packager
-Yar_Concurrent_Client::call("http://host/api/", "some_method", array("parameters"), "callback", NULL, array(YAR_OPT_TIMEOUT=>1));
+Yar_Concurrent_Client::call("http://host/api/", "some_method", array("parameters"), "callback", null, array(YAR_OPT_TIMEOUT=>1));
//custom timeout
//The requests are not sent yet
diff --git a/reference/yar/yar_concurrent_client/loop.xml b/reference/yar/yar_concurrent_client/loop.xml
index a9ba55c4ad33..fdb6e140d3e2 100644
--- a/reference/yar/yar_concurrent_client/loop.xml
+++ b/reference/yar/yar_concurrent_client/loop.xml
@@ -27,7 +27,7 @@
If this callback is set, then Yar will call this callback after all
- calls are sent and before any response return, with a $callinfo NULL.
+ calls are sent and before any response return, with a $callinfo null.
Then, if user didn't specify callback when registering concurrent call,
@@ -63,7 +63,7 @@
"json"));
+Yar_Concurrent_Client::call("http://host/api/", "some_method", array("parameters"), "callback", null, array(YAR_OPT_PACKAGER => "json"));
//this server accept json packager
-Yar_Concurrent_Client::call("http://host/api/", "some_method", array("parameters"), "callback", NULL, array(YAR_OPT_TIMEOUT=>1));
+Yar_Concurrent_Client::call("http://host/api/", "some_method", array("parameters"), "callback", null, array(YAR_OPT_TIMEOUT=>1));
//custom timeout
Yar_Concurrent_Client::loop("callback", "error_callback"); //send the requests,
diff --git a/reference/yaz/functions/yaz-record.xml b/reference/yaz/functions/yaz-record.xml
index 9b4c7767ade6..e2fe4b9428dd 100644
--- a/reference/yaz/functions/yaz-record.xml
+++ b/reference/yaz/functions/yaz-record.xml
@@ -270,7 +270,7 @@ $rec = yaz_record($id, $p, "xml; charset=marc-8,utf-8");
$xslfile = 'display.xsl';
$processor = xslt_create();
$parms = array('/_xml' => $rec);
-$res = xslt_process($processor, 'arg:/_xml', $xslfile, NULL, $parms);
+$res = xslt_process($processor, 'arg:/_xml', $xslfile, null, $parms);
xslt_free($processor);
$res = preg_replace("'?html[^>]*>'", '', $res);
echo $res;
diff --git a/reference/zip/examples.xml b/reference/zip/examples.xml
index 18e96e7ba0e4..09ea025bccf3 100644
--- a/reference/zip/examples.xml
+++ b/reference/zip/examples.xml
@@ -12,7 +12,7 @@
$zip = new ZipArchive();
$filename = "./test112.zip";
-if ($zip->open($filename, ZipArchive::CREATE)!==TRUE) {
+if ($zip->open($filename, ZipArchive::CREATE)!==true) {
exit("cannot open <$filename>\n");
}
diff --git a/reference/zip/ziparchive/addemptydir.xml b/reference/zip/ziparchive/addemptydir.xml
index f3da305bea30..7cd84d30e63a 100644
--- a/reference/zip/ziparchive/addemptydir.xml
+++ b/reference/zip/ziparchive/addemptydir.xml
@@ -85,7 +85,7 @@
open('test.zip') === TRUE) {
+if ($zip->open('test.zip') === true) {
if($zip->addEmptyDir('newDirectory')) {
echo 'Created a new root directory';
} else {
diff --git a/reference/zip/ziparchive/addfile.xml b/reference/zip/ziparchive/addfile.xml
index 757b4027a3c6..c85105acda8f 100644
--- a/reference/zip/ziparchive/addfile.xml
+++ b/reference/zip/ziparchive/addfile.xml
@@ -135,7 +135,7 @@
open('test.zip') === TRUE) {
+if ($zip->open('test.zip') === true) {
$zip->addFile('/path/to/index.txt', 'newname.txt');
$zip->close();
echo 'ok';
diff --git a/reference/zip/ziparchive/addfromstring.xml b/reference/zip/ziparchive/addfromstring.xml
index 9bf4265b4e85..42bfb3fa52bf 100644
--- a/reference/zip/ziparchive/addfromstring.xml
+++ b/reference/zip/ziparchive/addfromstring.xml
@@ -96,7 +96,7 @@
open('test.zip', ZipArchive::CREATE);
-if ($res === TRUE) {
+if ($res === true) {
$zip->addFromString('test.txt', 'file content goes here');
$zip->close();
echo 'ok';
@@ -113,7 +113,7 @@ if ($res === TRUE) {
open('test.zip') === TRUE) {
+if ($zip->open('test.zip') === true) {
$zip->addFromString('dir/test.txt', 'file content goes here');
$zip->close();
echo 'ok';
diff --git a/reference/zip/ziparchive/addglob.xml b/reference/zip/ziparchive/addglob.xml
index 9aa5d1095183..f44f0ef10efc 100644
--- a/reference/zip/ziparchive/addglob.xml
+++ b/reference/zip/ziparchive/addglob.xml
@@ -185,10 +185,10 @@
open('application.zip', ZipArchive::CREATE | ZipArchive::OVERWRITE);
-if ($ret !== TRUE) {
+if ($ret !== true) {
printf('Failed with code %d', $ret);
} else {
- $options = array('add_path' => 'sources/', 'remove_all_path' => TRUE);
+ $options = array('add_path' => 'sources/', 'remove_all_path' => true);
$zip->addGlob('*.{php,txt}', GLOB_BRACE, $options);
$zip->close();
}
diff --git a/reference/zip/ziparchive/addpattern.xml b/reference/zip/ziparchive/addpattern.xml
index 35ebbc60229e..e62060387288 100644
--- a/reference/zip/ziparchive/addpattern.xml
+++ b/reference/zip/ziparchive/addpattern.xml
@@ -69,7 +69,7 @@
open('application.zip', ZipArchive::CREATE | ZipArchive::OVERWRITE);
-if ($ret !== TRUE) {
+if ($ret !== true) {
printf('Failed with code %d', $ret);
} else {
$directory = realpath('.');
diff --git a/reference/zip/ziparchive/deleteindex.xml b/reference/zip/ziparchive/deleteindex.xml
index e3d41b4a7443..cd5137d062c1 100644
--- a/reference/zip/ziparchive/deleteindex.xml
+++ b/reference/zip/ziparchive/deleteindex.xml
@@ -44,7 +44,7 @@
open('test.zip') === TRUE) {
+if ($zip->open('test.zip') === true) {
$zip->deleteIndex(2);
$zip->close();
echo 'ok';
diff --git a/reference/zip/ziparchive/deletename.xml b/reference/zip/ziparchive/deletename.xml
index 16a37637207c..2904ba10b208 100644
--- a/reference/zip/ziparchive/deletename.xml
+++ b/reference/zip/ziparchive/deletename.xml
@@ -44,7 +44,7 @@
open('test1.zip') === TRUE) {
+if ($zip->open('test1.zip') === true) {
$zip->deleteName('testfromfile.php');
$zip->deleteName('testDir/');
$zip->close();
diff --git a/reference/zip/ziparchive/extractto.xml b/reference/zip/ziparchive/extractto.xml
index 5680b9e09def..5f4d7e9c7a6d 100644
--- a/reference/zip/ziparchive/extractto.xml
+++ b/reference/zip/ziparchive/extractto.xml
@@ -69,7 +69,7 @@
open('test.zip') === TRUE) {
+if ($zip->open('test.zip') === true) {
$zip->extractTo('/my/destination/dir/');
$zip->close();
echo 'ok';
@@ -87,7 +87,7 @@ if ($zip->open('test.zip') === TRUE) {
open('test_im.zip');
-if ($res === TRUE) {
+if ($res === true) {
$zip->extractTo('/my/destination/dir/', array('pear_item.gif', 'testfromfile.php'));
$zip->close();
echo 'ok';
diff --git a/reference/zip/ziparchive/getarchivecomment.xml b/reference/zip/ziparchive/getarchivecomment.xml
index bbc6acd7be02..6e8a0508ba53 100644
--- a/reference/zip/ziparchive/getarchivecomment.xml
+++ b/reference/zip/ziparchive/getarchivecomment.xml
@@ -49,7 +49,7 @@
open('test_with_comment.zip');
-if ($res === TRUE) {
+if ($res === true) {
var_dump($zip->getArchiveComment());
/* Or using the archive property */
var_dump($zip->comment);
diff --git a/reference/zip/ziparchive/getcommentindex.xml b/reference/zip/ziparchive/getcommentindex.xml
index d055e728e348..af92f39e2e0d 100644
--- a/reference/zip/ziparchive/getcommentindex.xml
+++ b/reference/zip/ziparchive/getcommentindex.xml
@@ -55,7 +55,7 @@
open('test1.zip');
-if ($res === TRUE) {
+if ($res === true) {
var_dump($zip->getCommentIndex(1));
} else {
echo 'failed, code:' . $res;
diff --git a/reference/zip/ziparchive/getcommentname.xml b/reference/zip/ziparchive/getcommentname.xml
index e27e9c6dd10b..81e242862e6b 100644
--- a/reference/zip/ziparchive/getcommentname.xml
+++ b/reference/zip/ziparchive/getcommentname.xml
@@ -55,7 +55,7 @@
open('test1.zip');
-if ($res === TRUE) {
+if ($res === true) {
var_dump($zip->getCommentName('test/entry1.txt'));
} else {
echo 'failed, code:' . $res;
diff --git a/reference/zip/ziparchive/getexternalattributesindex.xml b/reference/zip/ziparchive/getexternalattributesindex.xml
index 479b413b6a52..c8b3cef0666a 100644
--- a/reference/zip/ziparchive/getexternalattributesindex.xml
+++ b/reference/zip/ziparchive/getexternalattributesindex.xml
@@ -77,7 +77,7 @@
open('test.zip') === TRUE) {
+if ($zip->open('test.zip') === true) {
for ($idx=0 ; $s = $zip->statIndex($idx) ; $idx++) {
if ($zip->extractTo('.', $s['name'])) {
if ($zip->getExternalAttributesIndex($idx, $opsys, $attr)
diff --git a/reference/zip/ziparchive/getfromindex.xml b/reference/zip/ziparchive/getfromindex.xml
index 4524de3a1dda..0c9a8c6c95cc 100644
--- a/reference/zip/ziparchive/getfromindex.xml
+++ b/reference/zip/ziparchive/getfromindex.xml
@@ -76,7 +76,7 @@
open('test.zip') === TRUE) {
+if ($zip->open('test.zip') === true) {
echo $zip->getFromIndex(2);
$zip->close();
} else {
diff --git a/reference/zip/ziparchive/getfromname.xml b/reference/zip/ziparchive/getfromname.xml
index 9978f063a49e..35b7fabe8eba 100644
--- a/reference/zip/ziparchive/getfromname.xml
+++ b/reference/zip/ziparchive/getfromname.xml
@@ -81,7 +81,7 @@
open('test1.zip') === TRUE) {
+if ($zip->open('test1.zip') === true) {
echo $zip->getFromName('testfromfile.php');
$zip->close();
} else {
diff --git a/reference/zip/ziparchive/getnameindex.xml b/reference/zip/ziparchive/getnameindex.xml
index 1ab418679f3a..a74390c5f4ea 100644
--- a/reference/zip/ziparchive/getnameindex.xml
+++ b/reference/zip/ziparchive/getnameindex.xml
@@ -54,7 +54,7 @@
open('test.zip') == TRUE) {
+if ($zip->open('test.zip') == true) {
for ($i = 0; $i < $zip->numFiles; $i++) {
$filename = $zip->getNameIndex($i);
// ...
diff --git a/reference/zip/ziparchive/locatename.xml b/reference/zip/ziparchive/locatename.xml
index 9e194aa59c11..c6596b4c3ed9 100644
--- a/reference/zip/ziparchive/locatename.xml
+++ b/reference/zip/ziparchive/locatename.xml
@@ -68,7 +68,7 @@
$file = 'testlocate.zip';
$zip = new ZipArchive;
-if ($zip->open($file, ZipArchive::CREATE) !== TRUE) {
+if ($zip->open($file, ZipArchive::CREATE) !== true) {
exit('failed');
}
@@ -81,7 +81,7 @@ if ($zip->status !== ZipArchive::ER_OK) {
}
$zip->close();
-if ($zip->open($file) !== TRUE) {
+if ($zip->open($file) !== true) {
exit('failed');
}
diff --git a/reference/zip/ziparchive/open.xml b/reference/zip/ziparchive/open.xml
index ce7e311a6073..5f4f0c10380f 100644
--- a/reference/zip/ziparchive/open.xml
+++ b/reference/zip/ziparchive/open.xml
@@ -140,7 +140,7 @@
open('test.zip');
-if ($res === TRUE) {
+if ($res === true) {
echo 'ok';
$zip->extractTo('test');
$zip->close();
@@ -158,7 +158,7 @@ if ($res === TRUE) {
open('test.zip', ZipArchive::CREATE);
-if ($res === TRUE) {
+if ($res === true) {
$zip->addFromString('test.txt', 'file content goes here');
$zip->addFile('data.txt', 'entryname.txt');
$zip->close();
@@ -178,7 +178,7 @@ if ($res === TRUE) {
$name = tempnam(sys_get_temp_dir(), "FOO");
$zip = new ZipArchive;
$res = $zip->open($name, ZipArchive::OVERWRITE); /* truncate as empty file is not valid */
-if ($res === TRUE) {
+if ($res === true) {
$zip->addFile('data.txt', 'entryname.txt');
$zip->close();
echo 'ok';
diff --git a/reference/zip/ziparchive/renameindex.xml b/reference/zip/ziparchive/renameindex.xml
index 569aa0fc13f8..b69b09952a24 100644
--- a/reference/zip/ziparchive/renameindex.xml
+++ b/reference/zip/ziparchive/renameindex.xml
@@ -54,7 +54,7 @@
open('test.zip');
-if ($res === TRUE) {
+if ($res === true) {
$zip->renameIndex(2,'newname.txt');
$zip->close();
} else {
diff --git a/reference/zip/ziparchive/renamename.xml b/reference/zip/ziparchive/renamename.xml
index e4e6adca236c..e0def36a3300 100644
--- a/reference/zip/ziparchive/renamename.xml
+++ b/reference/zip/ziparchive/renamename.xml
@@ -54,7 +54,7 @@
open('test.zip');
-if ($res === TRUE) {
+if ($res === true) {
$zip->renameName('currentname.txt','newname.txt');
$zip->close();
} else {
diff --git a/reference/zip/ziparchive/replacefile.xml b/reference/zip/ziparchive/replacefile.xml
index b39e1f2c734e..97b3d0548331 100644
--- a/reference/zip/ziparchive/replacefile.xml
+++ b/reference/zip/ziparchive/replacefile.xml
@@ -127,7 +127,7 @@
open('test.zip') === TRUE) {
+if ($zip->open('test.zip') === true) {
$zip->replaceFile('/path/to/index.txt', 1);
$zip->close();
echo 'ok';
diff --git a/reference/zip/ziparchive/setarchivecomment.xml b/reference/zip/ziparchive/setarchivecomment.xml
index c11d542a9d62..8e5292f37271 100644
--- a/reference/zip/ziparchive/setarchivecomment.xml
+++ b/reference/zip/ziparchive/setarchivecomment.xml
@@ -45,7 +45,7 @@
open('test.zip', ZipArchive::CREATE);
-if ($res === TRUE) {
+if ($res === true) {
$zip->addFromString('test.txt', 'file content goes here');
$zip->setArchiveComment('new archive comment');
$zip->close();
diff --git a/reference/zip/ziparchive/setarchiveflag.xml b/reference/zip/ziparchive/setarchiveflag.xml
index d8312ee394f8..c05c2650abfd 100644
--- a/reference/zip/ziparchive/setarchiveflag.xml
+++ b/reference/zip/ziparchive/setarchiveflag.xml
@@ -68,7 +68,7 @@
open('test.zip', ZipArchive::CREATE);
-if ($res === TRUE) {
+if ($res === true) {
$zip->setArchiveFlag(ZipArchive::AFL_WANT_TORRENTZIP, 1);
$zip->addFromString('test.txt', 'file content goes here');
$zip->close();
diff --git a/reference/zip/ziparchive/setcommentindex.xml b/reference/zip/ziparchive/setcommentindex.xml
index f3982760a10e..91da5b4649aa 100644
--- a/reference/zip/ziparchive/setcommentindex.xml
+++ b/reference/zip/ziparchive/setcommentindex.xml
@@ -54,7 +54,7 @@
open('test.zip');
-if ($res === TRUE) {
+if ($res === true) {
$zip->setCommentIndex(2, 'new entry comment');
$zip->close();
echo 'ok';
diff --git a/reference/zip/ziparchive/setcommentname.xml b/reference/zip/ziparchive/setcommentname.xml
index 15168eb3bb0c..1904667bc706 100644
--- a/reference/zip/ziparchive/setcommentname.xml
+++ b/reference/zip/ziparchive/setcommentname.xml
@@ -54,7 +54,7 @@
open('test.zip');
-if ($res === TRUE) {
+if ($res === true) {
$zip->setCommentName('entry1.txt', 'new entry comment');
$zip->close();
echo 'ok';
diff --git a/reference/zip/ziparchive/setcompressionindex.xml b/reference/zip/ziparchive/setcompressionindex.xml
index 981ea4836ab3..3ba3c57dcbaa 100644
--- a/reference/zip/ziparchive/setcompressionindex.xml
+++ b/reference/zip/ziparchive/setcompressionindex.xml
@@ -64,7 +64,7 @@
open('test.zip', ZipArchive::CREATE);
-if ($res === TRUE) {
+if ($res === true) {
$zip->addFromString('foo', 'Some text');
$zip->addFromString('bar', 'Some other text');
$zip->setCompressionIndex(0, ZipArchive::CM_STORE);
diff --git a/reference/zip/ziparchive/setcompressionname.xml b/reference/zip/ziparchive/setcompressionname.xml
index 76acadb49b12..99437ad39405 100644
--- a/reference/zip/ziparchive/setcompressionname.xml
+++ b/reference/zip/ziparchive/setcompressionname.xml
@@ -64,7 +64,7 @@
open('test.zip', ZipArchive::CREATE);
-if ($res === TRUE) {
+if ($res === true) {
$zip->addFromString('foo', 'Some text');
$zip->addFromString('bar', 'Some other text');
$zip->setCompressionName('foo', ZipArchive::CM_STORE);
@@ -85,7 +85,7 @@ if ($res === TRUE) {
open('test.zip', ZipArchive::CREATE);
-if ($res === TRUE) {
+if ($res === true) {
$zip->addFile('foo.jpg', 'bar.jpg');
$zip->setCompressionName('bar.jpg', ZipArchive::CM_XZ);
$zip->close();
diff --git a/reference/zip/ziparchive/setencryptionname.xml b/reference/zip/ziparchive/setencryptionname.xml
index 2334a8aa3df6..26ecd2a695ce 100644
--- a/reference/zip/ziparchive/setencryptionname.xml
+++ b/reference/zip/ziparchive/setencryptionname.xml
@@ -91,7 +91,7 @@
open('test.zip', ZipArchive::CREATE) === TRUE) {
+if ($zip->open('test.zip', ZipArchive::CREATE) === true) {
$zip->setPassword('secret');
$zip->addFile('text.txt');
$zip->setEncryptionName('text.txt', ZipArchive::EM_AES_256);
diff --git a/reference/zip/ziparchive/setexternalattributesname.xml b/reference/zip/ziparchive/setexternalattributesname.xml
index 63b75027a8db..d5159087f516 100644
--- a/reference/zip/ziparchive/setexternalattributesname.xml
+++ b/reference/zip/ziparchive/setexternalattributesname.xml
@@ -78,7 +78,7 @@
open('test.zip', ZipArchive::CREATE) === TRUE) {
+if (is_array($stat) && $zip->open('test.zip', ZipArchive::CREATE) === true) {
$zip->addFile($filename);
$zip->setExternalAttributesName($filename, ZipArchive::OPSYS_UNIX, $stat['mode'] << 16);
$zip->close();
diff --git a/reference/zip/ziparchive/setmtimeindex.xml b/reference/zip/ziparchive/setmtimeindex.xml
index fae91bed6833..f7f914558a0a 100644
--- a/reference/zip/ziparchive/setmtimeindex.xml
+++ b/reference/zip/ziparchive/setmtimeindex.xml
@@ -69,7 +69,7 @@
open('test.zip', ZipArchive::CREATE) === TRUE) {
+if ($zip->open('test.zip', ZipArchive::CREATE) === true) {
$zip->addFile('text.txt');
$zip->setMtimeIndex(0, mktime(0,0,0,12,25,2019));
$zip->close();
diff --git a/reference/zip/ziparchive/setmtimename.xml b/reference/zip/ziparchive/setmtimename.xml
index e6a7f3c90d05..4fb538462263 100644
--- a/reference/zip/ziparchive/setmtimename.xml
+++ b/reference/zip/ziparchive/setmtimename.xml
@@ -69,7 +69,7 @@
open('test.zip', ZipArchive::CREATE) === TRUE) {
+if ($zip->open('test.zip', ZipArchive::CREATE) === true) {
$zip->addFile('text.txt');
$zip->setMtimeName('text.txt', mktime(0,0,0,12,25,2019));
$zip->close();
diff --git a/reference/zip/ziparchive/statindex.xml b/reference/zip/ziparchive/statindex.xml
index 71946a9dd708..6106fc90a5fa 100644
--- a/reference/zip/ziparchive/statindex.xml
+++ b/reference/zip/ziparchive/statindex.xml
@@ -57,7 +57,7 @@
open('test.zip');
-if ($res === TRUE) {
+if ($res === true) {
print_r($zip->statIndex(3));
$zip->close();
} else {
diff --git a/reference/zip/ziparchive/statname.xml b/reference/zip/ziparchive/statname.xml
index d10d8ebfcdbc..813298811b61 100644
--- a/reference/zip/ziparchive/statname.xml
+++ b/reference/zip/ziparchive/statname.xml
@@ -75,7 +75,7 @@
open('test.zip');
-if ($res === TRUE) {
+if ($res === true) {
print_r($zip->statName('foobar/baz'));
$zip->close();
} else {
diff --git a/reference/zlib/examples.xml b/reference/zlib/examples.xml
index 021b16f2e980..f83cdc0a7fa6 100644
--- a/reference/zlib/examples.xml
+++ b/reference/zlib/examples.xml
@@ -63,7 +63,7 @@ $compressed .= deflate_add($deflateContext, ", and even more data!", ZLIB_FINISH
// Perform GZIP decompression:
$inflateContext = inflate_init(ZLIB_ENCODING_GZIP);
$uncompressed = inflate_add($inflateContext, $compressed, ZLIB_NO_FLUSH);
-$uncompressed .= inflate_add($inflateContext, NULL, ZLIB_FINISH);
+$uncompressed .= inflate_add($inflateContext, null, ZLIB_FINISH);
echo $uncompressed;
?>
]]>
diff --git a/reference/zookeeper/zookeeper/get.xml b/reference/zookeeper/zookeeper/get.xml
index 2c7877df24aa..bce8692033b4 100644
--- a/reference/zookeeper/zookeeper/get.xml
+++ b/reference/zookeeper/zookeeper/get.xml
@@ -42,7 +42,7 @@
stat
- If not NULL, will hold the value of stat for the path on return.
+ If not null, will hold the value of stat for the path on return.
diff --git a/reference/zookeeper/zookeeper/set.xml b/reference/zookeeper/zookeeper/set.xml
index 2b11d06310e3..fb1d9d9b2d9b 100644
--- a/reference/zookeeper/zookeeper/set.xml
+++ b/reference/zookeeper/zookeeper/set.xml
@@ -50,7 +50,7 @@
stat
- If not NULL, will hold the value of stat for the path on return.
+ If not null, will hold the value of stat for the path on return.
diff --git a/reference/zookeeper/zookeeper/setlogstream.xml b/reference/zookeeper/zookeeper/setlogstream.xml
index 8e9e9197b1ba..c7861781e241 100644
--- a/reference/zookeeper/zookeeper/setlogstream.xml
+++ b/reference/zookeeper/zookeeper/setlogstream.xml
@@ -15,7 +15,7 @@
resourcestream
- The zookeeper library uses stderr as its default log stream. Application must make sure the stream is writable. Passing in NULL resets the stream to its default value (stderr).
+ The zookeeper library uses stderr as its default log stream. Application must make sure the stream is writable. Passing in null resets the stream to its default value (stderr).
diff --git a/reference/zookeeper/zookeeperconfig/add.xml b/reference/zookeeper/zookeeperconfig/add.xml
index 17df9df74de0..acf5a5d674ce 100644
--- a/reference/zookeeper/zookeeperconfig/add.xml
+++ b/reference/zookeeper/zookeeperconfig/add.xml
@@ -42,7 +42,7 @@
stat
- If not NULL, will hold the value of stat for the path on return.
+ If not null, will hold the value of stat for the path on return.
diff --git a/reference/zookeeper/zookeeperconfig/get.xml b/reference/zookeeper/zookeeperconfig/get.xml
index f2a907246b8f..b13dc28785be 100644
--- a/reference/zookeeper/zookeeperconfig/get.xml
+++ b/reference/zookeeper/zookeeperconfig/get.xml
@@ -32,7 +32,7 @@
stat
- If not NULL, will hold the value of stat for the path on return.
+ If not null, will hold the value of stat for the path on return.
diff --git a/reference/zookeeper/zookeeperconfig/remove.xml b/reference/zookeeper/zookeeperconfig/remove.xml
index c686583c2633..9cebfba8f1f0 100644
--- a/reference/zookeeper/zookeeperconfig/remove.xml
+++ b/reference/zookeeper/zookeeperconfig/remove.xml
@@ -41,7 +41,7 @@
stat
- If not NULL, will hold the value of stat for the path on return.
+ If not null, will hold the value of stat for the path on return.
diff --git a/reference/zookeeper/zookeeperconfig/set.xml b/reference/zookeeper/zookeeperconfig/set.xml
index e0e904cf9927..f2e5c80a6e2d 100644
--- a/reference/zookeeper/zookeeperconfig/set.xml
+++ b/reference/zookeeper/zookeeperconfig/set.xml
@@ -41,7 +41,7 @@
stat
- If not NULL, will hold the value of stat for the path on return.
+ If not null, will hold the value of stat for the path on return.