From:             jakem at nittanytravel dot com
Operating system: windows
PHP version:      5.2.5
PHP Bug Type:     Unknown/Other Function
Bug description:  stristr will not take 3rd bool arg

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


-- 
Edit bug report at http://bugs.php.net/?id=44438&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44438&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44438&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44438&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44438&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44438&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44438&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44438&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44438&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44438&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44438&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44438&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44438&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44438&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44438&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44438&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44438&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44438&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44438&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44438&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44438&r=mysqlcfg

Reply via email to