|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-12-17 17:30 UTC] nikic@php.net
-Status: Open
+Status: Not a bug
[2014-12-17 17:30 UTC] nikic@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 20:00:01 2025 UTC |
Description: ------------ php -v PHP 5.5.16-1+deb.sury.org~precise+1 (cli) (built: Aug 25 2014 10:23:41) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies with XCache v4.0.0-dev, Copyright (c) 2005-2013, by mOo with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies with XCache Optimizer v4.0.0-dev, Copyright (c) 2005-2013, by mOo with XCache Cacher v4.0.0-dev, Copyright (c) 2005-2013, by mOo with XCache Coverager v4.0.0-dev, Copyright (c) 2005-2013, by mOo Test script: --------------- <?php var_dump(json_decode("192.168.1.1")); //=>float(192.168) var_dump(json_last_error());//=>int(0) Expected result: ---------------- An error