#41826 [NEW]: function chunk_split doesen't work

2007-06-27 Thread mueller at spot-media dot de
From: mueller at spot-media dot de
Operating system: Debian etch
PHP version:  4.4.7
PHP Bug Type: Reproducible crash
Bug description:  function chunk_split doesen't work

Description:

The function chunk_split doesn't work in 4.4.7. I know it works in 4.4.4.
It just returns false.



Reproduce code:
---
$body = "ABCDEFGHIJK";
$chunken = 2;
$end = ";";
var_dump( chunk_split($body,$chunken,$end));

Expected result:

return (string) AB;CD;EF;GH;IJ;K;

Actual result:
--
(bool) false

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


Bug #16001: File-Upload's mime-type in Opera

2002-03-11 Thread spot

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.1.2
PHP Bug Type: Feature/Change Request
Bug description:  File-Upload's mime-type in Opera

There seems to be a problem when getting uploaded file's mime-type. The
problem occurs only with Opera.

The file is uploaded correctly, and then I try to check the uploaded
file's mime-type.

$userfile_type gives:
image/gif; name=\"logo3.gif\"

It should be of cource only "image/gif". And the name should be reported
only in $userfile_name, not in $userfile_type.

So I'll have to write a correction to every my scripts involved with
file-uploads.

Correction I have made:
list ($userfile_type) = split(";", $userfile_type);

I have made an example page for uploading images, which is in the
address:
http://ihastus.net/phpbug/
-- 
Edit bug report at http://bugs.php.net/?id=16001&edit=1
-- 
Fixed in CVS:http://bugs.php.net/fix.php?id=16001&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=16001&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=16001&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16001&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16001&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16001&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16001&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16001&r=submittedtwice