|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-25 11:55 UTC] stas@php.net
[2000-08-01 09:20 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 19:00:01 2025 UTC |
PHP seems to consider \0 (NULL chracter) a valid value. As the result check such as if($val) is true. Example Code: <? $ret_val = exec("ps -p 1 | grep shit"); if( $ret_val ) { echo "this shouldn't happen\n"; } echo ord($ret_val)."\n"; echo strlen($ret_val)."\n"; ?> Maybe the type juggling mechanism gets confused?