Hi I have my own dev server which is running php 5.4.7
Quote
PHP 5.4.7 (cli) (built: Oct 2 2012 12:10:57)
Copyright © 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright © 1998-2012 Zend Technologies
with Xdebug v2.2.1, Copyright © 2002-2012, by Derick Rethans
Copyright © 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright © 1998-2012 Zend Technologies
with Xdebug v2.2.1, Copyright © 2002-2012, by Derick Rethans
The problem is ?: is giving me a weird http error once in a while (more often than you think)
http://dev.coding-tech.com/test.php
http://dev.coding-tech.com/test2.php
test.php
<?php $test = "xxx"; echo ($test ?: "no value"); $x = null; echo "<br />" . ($x ?: "no value");
test2.php
<?php $test = "xxx"; echo ($test ? $test : "no value"); $x = null; echo "<br />" . ($x ? $x : "no value");
This post has been edited by nightscream: 02 October 2012 - 06:35 AM

New Topic/Question
Reply




MultiQuote






|