|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-10-26 10:46 UTC] rasmus@php.net
-Status: Open
+Status: Bogus
[2010-10-26 10:46 UTC] rasmus@php.net
[2010-10-26 11:00 UTC] borovoy dot anton at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 18:00:01 2025 UTC |
Description: ------------ <?php class test { public $value = 'Hi'; } $obj = new test(); trim($obj); ?> result: Warning: trim() expects parameter 1 to be string, object given <?php $content = file_get_contents('http://php.net'); while ($i = 1) { trim(tidy_parse_string($content, $tidy_config, 'utf8')); } ?> result: Fatal error: Allowed memory size of 1048576 bytes exhausted (tried to allocate 104 bytes) php: tidylib.c:168: tidyDocRelease: Assertion `doc->docIn == ((void *)0)' failed. I think need warning and not eat all memory thx