|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-03-14 21:50 UTC] felipe@php.net
[2008-03-15 05:33 UTC] jakem at nittanytravel dot com
[2008-03-15 09:49 UTC] felipe@php.net
[2008-03-17 21:58 UTC] jakem at nittanytravel dot com
[2008-03-17 22:03 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 09 11:00:01 2025 UTC |
Description: ------------ Getting this: Warning: Wrong parameter count for stristr() in C:\Inetpub\wwwroot\RCC\test.php on line 39 This line: if ($t1 = stristr($file, 'front', true)) Removing true allows function to work. PHP Version 5.2.5 System Windows NT DESKTOP 5.1 build 2600 Build Date Nov 8 2007 23:18:08 Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" Server API ISAPI Virtual Directory Support enabled Configuration File (php.ini) Path C:\WINDOWS Loaded Configuration File C:\WINDOWS\php.ini PHP API 20041225 PHP Extension 20060613 Zend Extension 220060519 Debug Build no Thread Safety enabled Zend Memory Manager enabled IPv6 Support enabled Registered PHP Streams php, file, data, http, ftp, compress.zlib Registered Stream Socket Transports tcp, udp Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.* Reproduce code: --------------- $file = 'Vienna Front View.jpg'; if ($t1 = stristr($file, 'front', true)) Expected result: ---------------- Vienna Actual result: -------------- Warning: Wrong parameter count for stristr() in C:\Inetpub\wwwroot\RCC\test.php on line 39