#38313 [Bgs->Csd]: array_unique does not work

2006-08-03 Thread philsci at firstbrand dot co dot jp
 ID:   38313
 User updated by:  philsci at firstbrand dot co dot jp
 Reported By:  philsci at firstbrand dot co dot jp
-Status:   Bogus
+Status:   Closed
 Bug Type: Performance problem
 Operating System: Windows XP Pro, Linux (redhat)
 PHP Version:  5.1.4
 New Comment:

this issue is resolved when we explode an array only with \r in Windows
and Linux, while \r\n nor \n work properly.


Previous Comments:


[2006-08-03 12:23:49] [EMAIL PROTECTED]

RTFM:
array_unique() takes input array and **returns a new array without
duplicate values**.



[2006-08-03 12:19:47] philsci at firstbrand dot co dot jp

Description:

$arr_list = array( '[EMAIL PROTECTED]',
'[EMAIL PROTECTED]' );
print_r( $arr_list ); echo '';
array_unique( $arr_list );
print_r( $arr_list ); echo '';

---

shows:

Array ( [0] => [EMAIL PROTECTED] [1] => [EMAIL PROTECTED]
) 
Array ( [0] => [EMAIL PROTECTED] [1] => [EMAIL PROTECTED]
) 

so, array_unique does not work at all.

Expected result:

$arr_list = array( '[EMAIL PROTECTED]',
'[EMAIL PROTECTED]' );
print_r( $arr_list ); echo '';
array_unique( $arr_list );
print_r( $arr_list ); echo '';

---

should be shown as:

Array ( [0] => [EMAIL PROTECTED] [1] => [EMAIL PROTECTED]
) 
Array ( [0] => [EMAIL PROTECTED] ) 


Actual result:
--
$arr_list = array( '[EMAIL PROTECTED]',
'[EMAIL PROTECTED]' );
print_r( $arr_list ); echo '';
array_unique( $arr_list );
print_r( $arr_list ); echo '';






-- 
Edit this bug report at http://bugs.php.net/?id=38313&edit=1


#38313 [NEW]: array_unique does not work

2006-08-03 Thread philsci at firstbrand dot co dot jp
From: philsci at firstbrand dot co dot jp
Operating system: Windows XP Pro, Linux (redhat)
PHP version:  5.1.4
PHP Bug Type: Performance problem
Bug description:  array_unique does not work

Description:

$arr_list = array( '[EMAIL PROTECTED]', '[EMAIL PROTECTED]'
);
print_r( $arr_list ); echo '';
array_unique( $arr_list );
print_r( $arr_list ); echo '';

---

shows:

Array ( [0] => [EMAIL PROTECTED] [1] => [EMAIL PROTECTED] )

Array ( [0] => [EMAIL PROTECTED] [1] => [EMAIL PROTECTED] )


so, array_unique does not work at all.

Expected result:

$arr_list = array( '[EMAIL PROTECTED]', '[EMAIL PROTECTED]'
);
print_r( $arr_list ); echo '';
array_unique( $arr_list );
print_r( $arr_list ); echo '';

---

should be shown as:

Array ( [0] => [EMAIL PROTECTED] [1] => [EMAIL PROTECTED] )

Array ( [0] => [EMAIL PROTECTED] ) 


Actual result:
--
$arr_list = array( '[EMAIL PROTECTED]', '[EMAIL PROTECTED]'
);
print_r( $arr_list ); echo '';
array_unique( $arr_list );
print_r( $arr_list ); echo '';


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


Bug #16660 Updated: Documentation bz2 archive format is not appropriate

2002-04-26 Thread philsci

 ID:   16660
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Documentation problem
 Operating System: Windows 
 PHP Version:  4.2.0
 New Comment:

I think the problem is a lack of choice. bz2 might be
better than other formats, but you (people at php.net)
are little going too far with bz2 and that HTML Help...


Previous Comments:


[2002-04-17 12:40:46] [EMAIL PROTECTED]

Nope, this is a documentation problem.



[2002-04-17 11:42:30] [EMAIL PROTECTED]

Reclassified.

-Tal



[2002-04-17 10:11:32] [EMAIL PROTECTED]

Recently there was a change in the archive format of the downloadable
documentation - from tar.gz and zip to bz2. A link to a FAQ article
describing archive programs for the Windows platform was added in the
left pane of http://www.php.net/download-docs.php .

The bz2 format is new and not common on Windows platform - which is
used by the majority of php users and programmers. Furthermore, the
linked programs "Ultimate Zip" and "Quickzip" do not work properly with
bz2. 
Using the bz2 format violates the rule of "least astonishment" and is
harmful to the positive image of PHP as being user friendly.

Thus I propose to return to tar.gz or .zip format for the doc files.




-- 
Edit this bug report at http://bugs.php.net/?id=16660&edit=1




Bug #16686: Semantics contradiction

2002-04-18 Thread philsci

From: [EMAIL PROTECTED]
Operating system: Windows XP Pro
PHP version:  4.2.0
PHP Bug Type: Documentation problem
Bug description:  Semantics contradiction

This is not serious but misleading for newbies.
On your manual, imagecreate(); appears to need width
and height of each image to make GD stream, while
imagesx and imagexy need GD stream to get width and
height of each image.
-- 
Edit bug report at http://bugs.php.net/?id=16686&edit=1
-- 
Fixed in CVS:http://bugs.php.net/fix.php?id=16686&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=16686&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=16686&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16686&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16686&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16686&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16686&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16686&r=submittedtwice