From:             joc at presence-pc dot com
Operating system: Linux
PHP version:      4CVS-2005-04-01 (stable)
PHP Bug Type:     Strings related
Bug description:  Chunk_split changed behaviour in 4.3.11

Description:
------------
Hi,

I've just noticed a change in chunk_split behaviour in 4.3.11 which breaks
my application.

Regards,
  Jocelyn

Reproduce code:
---------------
With the following script :

$test=chunk_split('test',10,"|end");
echo $test;

In 4.3.10 :

test|end

In 4.3.11 :

test

(ie "string end" in 4.3.10 is inserted at the end of the "string body"
even if the word is smaller than the chunklen)

However if the word is greater than the chunklen 4.3.10 and 4.3.11 behaves
the same.

Expected result:
----------------
test|end

Actual result:
--------------
test

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

Reply via email to