3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); echo '#+++++++++++++++++++++++++++++++++++#' . PHP_EOL; echo '# Checking if a constant is defined #' . PHP_EOL; echo '# always retuns (bool)false in PHP. #' . PHP_EOL; echo '# Even if it has been defined! #' . PHP_EOL; echo '#+++++++++++++++++++++++++++++++++++#' . PHP_EOL; error_reporting(E_ALL); echo 'Testing on PHP version ' . PHP_VERSION . PHP_EOL . PHP_EOL; #ob_flush(); flush(); sleep(1); echo 'Checking if `__DIR__` is defined...' . PHP_EOL; if (!defined('__DIR__')) { #ob_flush(); flush(); sleep(2); echo 'Nope, `defined()` returned `(bool)false`.' . PHP_EOL; echo 'So, seems like the magic constant `__DIR__` is not defined.' . PHP_EOL . PHP_EOL; #ob_flush(); flush(); sleep(2); echo 'No prob. Executing `define(\'__DIR__\', \'/foo/bar\')`...' . PHP_EOL; define('__DIR__', '/foo/bar'); #ob_flush(); flush(); sleep(1); echo 'Done, defined `__DIR__` as "/foo/bar".' . PHP_EOL . PHP_EOL; #ob_flush(); flush(); sleep(1); echo 'Double-checking `__DIR__` is defined now...' . PHP_EOL; #ob_flush(); flush(); sleep(2); if (!defined('__DIR__')) { echo 'WTF, `defined(\'__DIR__\')` again returned `(bool)false`?!' . PHP_EOL; } else{ echo 'Strike, this time `defined(\'__DIR__\')` returned `(bool)true`.' . PHP_EOL; echo 'So, seems like `__DIR__` was successfully defined. :)' . PHP_EOL . PHP_EOL; } } else{ echo 'Yep, `defined(\'__DIR__\')` returned `(bool)true`.' . PHP_EOL; echo 'The magic constant `__DIR__` seems to be defined.' . PHP_EOL . PHP_EOL; } #ob_flush(); flush(); sleep(2); echo 'Finally, here is the result of `var_dump(__DIR__)`:' . PHP_EOL; var_dump(__DIR__); #ob_flush(); flush(); sleep(1); if ("/foo/bar" != __DIR__) { echo 'But, wait..' . PHP_EOL; echo 'I defined `__DIR__` as "/foo/bar" - not as "' . __DIR__ .'"?! What happend?' . PHP_EOL . PHP_EOL; #ob_flush(); flush(); sleep(1); echo 'In fact, `__DIR__` was already defined when first checked.' . PHP_EOL; echo 'But 1) `defined(\'__MAGIC_CONSTANT__\')` ALWAYS returns `(bool)false`' . PHP_EOL; echo 'and 2) defined constants can not be overwritten.' . PHP_EOL; }
Output for 8.3.4
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.3.4 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.3.3
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.3.3 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.3.2
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.3.2 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.3.1
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.3.1 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.3.0
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.3.0 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.2.17
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.2.17 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.2.16
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.2.16 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.2.15
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.2.15 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.2.14
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.2.14 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.2.13
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.2.13 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.2.12
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.2.12 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.2.11
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.2.11 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.2.10
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.2.10 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.2.9
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.2.9 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.2.8
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.2.8 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.2.7
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.2.7 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.2.6
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.2.6 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.2.5
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.2.5 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.2.4
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.2.4 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.2.3
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.2.3 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.2.2
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.2.2 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.2.1
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.2.1 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.2.0
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.2.0 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.27
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.27 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.26
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.26 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.25
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.25 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.24
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.24 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.23
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.23 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.22
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.22 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.21
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.21 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.20
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.20 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.19
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.19 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.18
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.18 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.17
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.17 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.16
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.16 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.15
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.15 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.14
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.14 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.13
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.13 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.12
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.12 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.11
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.11 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.10
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.10 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.9
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.9 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.8
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.8 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.7
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.7 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.6
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.6 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.5
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.5 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.4
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.4 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.3
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.3 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.2
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.2 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.1
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.1 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.1.0
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.1.0 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.30
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.30 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.29
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.29 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.28
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.28 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.27
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.27 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.26
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.26 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.25
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.25 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.24
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.24 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.23
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.23 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.22
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.22 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.21
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.21 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.20
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.20 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.19
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.19 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.18
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.18 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.17
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.17 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.16
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.16 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.15
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.15 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.14
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.14 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.13
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.13 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.12
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.12 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.11
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.11 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.10
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.10 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.9
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.9 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.8
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.8 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.7
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.7 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.6
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.6 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.5
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.5 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.3
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.3 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.2
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.2 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.1
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.1 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 8.0.0
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 8.0.0 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.33
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.33 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.32
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.32 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.30
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.30 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.29
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.29 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.28
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.28 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.27
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.27 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.26
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.26 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.25
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.25 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.24
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.24 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.23
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.23 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.22
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.22 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.21
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.21 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.20
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.20 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.19
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.19 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.16
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.16 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.15
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.15 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.14
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.14 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.13
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.13 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.12
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.12 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.11
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.11 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.10
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.10 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.9
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.9 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.8
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.8 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.7
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.7 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.6
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.6 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.5
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.5 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.4
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.4 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.3
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.3 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.4.0
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.4.0 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.33
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.33 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.32
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.32 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.31
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.31 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.30
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.30 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.29
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.29 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.28
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.28 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.27
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.27 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.26
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.26 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.25
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.25 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.24
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.24 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.23
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.23 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.21
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.21 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.20
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.20 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.19
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.19 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.18
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.18 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.17
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.17 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.16
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.16 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.12
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.12 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.1
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.1 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.3.0
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.3.0 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.2.33
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.2.33 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.2.32
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.2.32 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.2.31
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.2.31 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.2.30
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.2.30 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.2.29
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.2.29 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.2.13
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.2.13 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.2.12
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.2.12 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.2.11
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.2.11 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.2.10
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.2.10 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.2.9
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.2.9 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.2.8
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.2.8 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.2.7
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.2.7 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.2.6
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.2.6 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.2.5
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.2.5 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.2.4
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.2.4 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.2.3
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.2.3 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.2.2
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.2.2 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.2.1
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.2.1 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.2.0
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.2.0 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.1.25
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.1.25 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.1.10
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.1.10 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.1.7
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.1.7 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.1.6
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.1.6 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.1.5
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.1.5 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.1.0
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.1.0 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.0.20
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.0.20 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.0.14
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.0.14 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.0.10
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.0.10 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.0.9
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.0.9 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.0.8
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.0.8 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.0.7
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.0.7 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.0.6
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.0.6 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.0.5
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.0.5 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.0.4
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.0.4 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.0.3
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.0.3 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.0.2
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.0.2 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.0.1
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.0.1 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 7.0.0
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 7.0.0 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.28
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.28 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.25
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.25 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.24
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.24 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.23
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.23 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.22
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.22 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.21
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.21 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.20
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.20 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.19
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.19 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.18
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.18 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.17
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.17 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.16
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.16 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.15
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.15 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.14
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.14 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.13
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.13 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.12
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.12 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.11
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.11 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.10
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.10 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.9
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.9 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.8
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.8 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.7
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.7 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.6
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.6 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.5
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.5 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.4
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.4 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.3
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.3 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.2
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.2 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.1
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.1 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.6.0
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.6.0 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.38
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.38 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.37
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.37 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.36
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.36 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.35
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.35 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.34
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.34 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.33
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.33 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.32
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.32 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.31
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.31 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.30
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.30 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.29
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.29 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.28
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.28 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.27
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.27 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.26
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.26 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.25
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.25 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.24
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.24 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.23
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.23 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.22
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.22 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.21
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.21 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.20
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.20 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.19
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.19 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.18
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.18 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.16
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.16 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.15
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.15 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.14
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.14 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.13
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.13 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.12
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.12 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.11
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.11 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.10
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.10 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.9
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.9 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.8
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.8 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.7
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.7 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.6
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.6 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.5
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.5 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.4
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.4 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.3
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.3 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.2
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.2 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.1
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.1 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.5.0
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.5.0 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.45
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.45 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.44
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.44 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.43
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.43 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.42
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.42 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.41
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.41 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.40
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.40 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.39
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.39 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.38
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.38 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.37
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.37 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.36
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.36 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.35
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.35 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.34
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.34 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.32
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.32 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.31
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.31 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.30
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.30 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.29
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.29 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.28
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.28 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.27
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.27 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.26
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.26 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.25
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.25 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.24
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.24 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.23
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.23 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.22
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.22 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.21
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.21 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.20
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.20 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.19
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.19 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.18
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.18 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.17
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.17 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.16
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.16 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.15
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.15 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.14
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.14 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.13
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.13 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.12
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.12 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.11
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.11 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.10
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.10 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.9
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.9 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.8
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.8 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.7
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.7 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.6
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.6 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.5
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.5 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.4
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.4 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.3
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.3 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.2
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.2 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.1
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.1 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.4.0
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.4.0 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.29
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.29 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.28
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.28 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.27
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.27 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.26
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.26 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.25
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.25 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.24
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.24 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.23
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.23 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.22
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.22 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.21
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.21 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.20
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.20 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.19
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.19 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.18
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.18 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.17
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.17 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.16
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.16 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.15
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.15 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.14
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.14 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.13
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.13 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.12
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.12 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.11
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.11 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.10
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.10 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.9
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.9 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.8
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.8 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.7
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.7 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.6
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.6 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.5
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.5 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.4
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.4 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.3
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.3 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.2
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.2 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.1
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.1 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.3.0
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.3.0 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(3) "/in" But, wait.. I defined `__DIR__` as "/foo/bar" - not as "/in"?! What happend? In fact, `__DIR__` was already defined when first checked. But 1) `defined('__MAGIC_CONSTANT__')` ALWAYS returns `(bool)false` and 2) defined constants can not be overwritten.
Output for 5.2.17
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.2.17 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.2.16
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.2.16 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.2.15
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.2.15 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.2.14
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.2.14 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.2.13
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.2.13 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.2.12
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.2.12 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.2.11
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.2.11 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.2.10
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.2.10 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.2.9
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.2.9 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.2.8
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.2.8 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.2.7
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.2.7 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.2.6
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.2.6 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.2.5
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.2.5 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.2.4
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.2.4 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.2.3
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.2.3 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.2.2
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.2.2 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.2.1
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.2.1 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.2.0
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.2.0 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.1.6
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.1.6 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.1.5
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.1.5 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.1.4
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.1.4 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.1.3
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.1.3 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.1.2
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.1.2 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.1.1
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.1.1 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.1.0
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.1.0 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.0.5
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.0.5 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.0.4
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.0.4 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.0.3
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.0.3 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.0.2
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 5.0.2 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 4 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 5 # Checking if a constant is defined #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 6 # always retuns (bool)false in PHP. #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 7 # Even if it has been defined! #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 8 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Testing on PHP version 5.0.1PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 15 Checking if `__DIR__` is defined...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 19 Nope, `defined()` returned `(bool)false`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 So, seems like the magic constant `__DIR__` is not defined.PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 23 No prob. Executing `define('__DIR__', '/foo/bar')`...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Done, defined `__DIR__` as "/foo/bar".PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 30 Double-checking `__DIR__` is defined now...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 36 Strike, this time `defined('__DIR__')` returned `(bool)true`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 So, seems like `__DIR__` was successfully defined. :)PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 45 Finally, here is the result of `var_dump(__DIR__)`:PHP_EOLstring(8) "/foo/bar"
Output for 5.0.0
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 4 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 5 # Checking if a constant is defined #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 6 # always retuns (bool)false in PHP. #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 7 # Even if it has been defined! #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 8 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Testing on PHP version 5.0.0PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 15 Checking if `__DIR__` is defined...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 19 Nope, `defined()` returned `(bool)false`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 So, seems like the magic constant `__DIR__` is not defined.PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 23 No prob. Executing `define('__DIR__', '/foo/bar')`...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Done, defined `__DIR__` as "/foo/bar".PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 30 Double-checking `__DIR__` is defined now...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 36 Strike, this time `defined('__DIR__')` returned `(bool)true`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 So, seems like `__DIR__` was successfully defined. :)PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 45 Finally, here is the result of `var_dump(__DIR__)`:PHP_EOLstring(8) "/foo/bar"
Output for 4.4.9
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 4.4.9 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 4.4.8
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 4.4.8 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 4.4.7
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 4.4.7 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 4.4.6
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 4.4.6 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 4.4.5
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 4.4.5 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 4.4.4
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 4.4.4 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 4.4.3
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 4.4.3 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 4.4.2
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 4.4.2 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 4.4.1
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 4.4.1 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 4.4.0
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 4.4.0 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 4.3.11
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 4.3.11 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 4.3.10
#+++++++++++++++++++++++++++++++++++# # Checking if a constant is defined # # always retuns (bool)false in PHP. # # Even if it has been defined! # #+++++++++++++++++++++++++++++++++++# Testing on PHP version 4.3.10 Checking if `__DIR__` is defined... Nope, `defined()` returned `(bool)false`. So, seems like the magic constant `__DIR__` is not defined. No prob. Executing `define('__DIR__', '/foo/bar')`... Done, defined `__DIR__` as "/foo/bar". Double-checking `__DIR__` is defined now... Strike, this time `defined('__DIR__')` returned `(bool)true`. So, seems like `__DIR__` was successfully defined. :) Finally, here is the result of `var_dump(__DIR__)`: string(8) "/foo/bar"
Output for 4.3.9
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 4 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 5 # Checking if a constant is defined #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 6 # always retuns (bool)false in PHP. #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 7 # Even if it has been defined! #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 8 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Testing on PHP version 4.3.9PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 15 Checking if `__DIR__` is defined...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 19 Nope, `defined()` returned `(bool)false`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 So, seems like the magic constant `__DIR__` is not defined.PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 23 No prob. Executing `define('__DIR__', '/foo/bar')`...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Done, defined `__DIR__` as "/foo/bar".PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 30 Double-checking `__DIR__` is defined now...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 36 Strike, this time `defined('__DIR__')` returned `(bool)true`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 So, seems like `__DIR__` was successfully defined. :)PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 45 Finally, here is the result of `var_dump(__DIR__)`:PHP_EOLstring(8) "/foo/bar"
Output for 4.3.8
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 4 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 5 # Checking if a constant is defined #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 6 # always retuns (bool)false in PHP. #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 7 # Even if it has been defined! #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 8 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Testing on PHP version 4.3.8PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 15 Checking if `__DIR__` is defined...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 19 Nope, `defined()` returned `(bool)false`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 So, seems like the magic constant `__DIR__` is not defined.PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 23 No prob. Executing `define('__DIR__', '/foo/bar')`...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Done, defined `__DIR__` as "/foo/bar".PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 30 Double-checking `__DIR__` is defined now...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 36 Strike, this time `defined('__DIR__')` returned `(bool)true`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 So, seems like `__DIR__` was successfully defined. :)PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 45 Finally, here is the result of `var_dump(__DIR__)`:PHP_EOLstring(8) "/foo/bar"
Output for 4.3.7
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 4 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 5 # Checking if a constant is defined #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 6 # always retuns (bool)false in PHP. #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 7 # Even if it has been defined! #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 8 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Testing on PHP version 4.3.7PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 15 Checking if `__DIR__` is defined...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 19 Nope, `defined()` returned `(bool)false`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 So, seems like the magic constant `__DIR__` is not defined.PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 23 No prob. Executing `define('__DIR__', '/foo/bar')`...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Done, defined `__DIR__` as "/foo/bar".PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 30 Double-checking `__DIR__` is defined now...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 36 Strike, this time `defined('__DIR__')` returned `(bool)true`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 So, seems like `__DIR__` was successfully defined. :)PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 45 Finally, here is the result of `var_dump(__DIR__)`:PHP_EOLstring(8) "/foo/bar"
Output for 4.3.6
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 4 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 5 # Checking if a constant is defined #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 6 # always retuns (bool)false in PHP. #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 7 # Even if it has been defined! #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 8 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Testing on PHP version 4.3.6PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 15 Checking if `__DIR__` is defined...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 19 Nope, `defined()` returned `(bool)false`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 So, seems like the magic constant `__DIR__` is not defined.PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 23 No prob. Executing `define('__DIR__', '/foo/bar')`...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Done, defined `__DIR__` as "/foo/bar".PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 30 Double-checking `__DIR__` is defined now...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 36 Strike, this time `defined('__DIR__')` returned `(bool)true`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 So, seems like `__DIR__` was successfully defined. :)PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 45 Finally, here is the result of `var_dump(__DIR__)`:PHP_EOLstring(8) "/foo/bar"
Output for 4.3.5
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 4 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 5 # Checking if a constant is defined #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 6 # always retuns (bool)false in PHP. #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 7 # Even if it has been defined! #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 8 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Testing on PHP version 4.3.5PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 15 Checking if `__DIR__` is defined...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 19 Nope, `defined()` returned `(bool)false`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 So, seems like the magic constant `__DIR__` is not defined.PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 23 No prob. Executing `define('__DIR__', '/foo/bar')`...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Done, defined `__DIR__` as "/foo/bar".PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 30 Double-checking `__DIR__` is defined now...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 36 Strike, this time `defined('__DIR__')` returned `(bool)true`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 So, seems like `__DIR__` was successfully defined. :)PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 45 Finally, here is the result of `var_dump(__DIR__)`:PHP_EOLstring(8) "/foo/bar"
Output for 4.3.4
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 4 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 5 # Checking if a constant is defined #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 6 # always retuns (bool)false in PHP. #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 7 # Even if it has been defined! #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 8 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Testing on PHP version 4.3.4PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 15 Checking if `__DIR__` is defined...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 19 Nope, `defined()` returned `(bool)false`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 So, seems like the magic constant `__DIR__` is not defined.PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 23 No prob. Executing `define('__DIR__', '/foo/bar')`...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Done, defined `__DIR__` as "/foo/bar".PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 30 Double-checking `__DIR__` is defined now...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 36 Strike, this time `defined('__DIR__')` returned `(bool)true`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 So, seems like `__DIR__` was successfully defined. :)PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 45 Finally, here is the result of `var_dump(__DIR__)`:PHP_EOLstring(8) "/foo/bar"
Output for 4.3.3
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 4 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 5 # Checking if a constant is defined #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 6 # always retuns (bool)false in PHP. #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 7 # Even if it has been defined! #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 8 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Testing on PHP version 4.3.3PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 15 Checking if `__DIR__` is defined...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 19 Nope, `defined()` returned `(bool)false`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 So, seems like the magic constant `__DIR__` is not defined.PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 23 No prob. Executing `define('__DIR__', '/foo/bar')`...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Done, defined `__DIR__` as "/foo/bar".PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 30 Double-checking `__DIR__` is defined now...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 36 Strike, this time `defined('__DIR__')` returned `(bool)true`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 So, seems like `__DIR__` was successfully defined. :)PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 45 Finally, here is the result of `var_dump(__DIR__)`:PHP_EOLstring(8) "/foo/bar"
Output for 4.3.2
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 4 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 5 # Checking if a constant is defined #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 6 # always retuns (bool)false in PHP. #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 7 # Even if it has been defined! #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 8 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Testing on PHP version 4.3.2PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 15 Checking if `__DIR__` is defined...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 19 Nope, `defined()` returned `(bool)false`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 So, seems like the magic constant `__DIR__` is not defined.PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 23 No prob. Executing `define('__DIR__', '/foo/bar')`...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Done, defined `__DIR__` as "/foo/bar".PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 30 Double-checking `__DIR__` is defined now...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 36 Strike, this time `defined('__DIR__')` returned `(bool)true`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 So, seems like `__DIR__` was successfully defined. :)PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 45 Finally, here is the result of `var_dump(__DIR__)`:PHP_EOLstring(8) "/foo/bar"
Output for 4.3.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 4 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 5 # Checking if a constant is defined #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 6 # always retuns (bool)false in PHP. #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 7 # Even if it has been defined! #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 8 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Testing on PHP version 4.3.1PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 15 Checking if `__DIR__` is defined...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 19 Nope, `defined()` returned `(bool)false`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 So, seems like the magic constant `__DIR__` is not defined.PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 23 No prob. Executing `define('__DIR__', '/foo/bar')`...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Done, defined `__DIR__` as "/foo/bar".PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 30 Double-checking `__DIR__` is defined now...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 36 Strike, this time `defined('__DIR__')` returned `(bool)true`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 So, seems like `__DIR__` was successfully defined. :)PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 45 Finally, here is the result of `var_dump(__DIR__)`:PHP_EOLstring(8) "/foo/bar"
Output for 4.3.0
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 4 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 5 # Checking if a constant is defined #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 6 # always retuns (bool)false in PHP. #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 7 # Even if it has been defined! #PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 8 #+++++++++++++++++++++++++++++++++++#PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 12 Testing on PHP version 4.3.0PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 15 Checking if `__DIR__` is defined...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 19 Nope, `defined()` returned `(bool)false`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 20 So, seems like the magic constant `__DIR__` is not defined.PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 23 No prob. Executing `define('__DIR__', '/foo/bar')`...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 27 Done, defined `__DIR__` as "/foo/bar".PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 30 Double-checking `__DIR__` is defined now...PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 36 Strike, this time `defined('__DIR__')` returned `(bool)true`.PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 37 So, seems like `__DIR__` was successfully defined. :)PHP_EOLPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/WOWq9 on line 45 Finally, here is the result of `var_dump(__DIR__)`:PHP_EOLstring(8) "/foo/bar"

preferences:
276.44 ms | 409 KiB | 366 Q