php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #59159 wincache_ucache_add() documentation incorrect.
Submitted: 2010-04-13 12:34 UTC Modified: 2010-04-14 02:04 UTC
From: donraman@php.net Assigned:
Status: Closed Package: WinCache (PECL)
PHP Version: Irrelevant OS: WINDOWS
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
31 + 5 = ?
Subscribe to this entry?

 
 [2010-04-13 12:34 UTC] donraman@php.net
Description:
------------
The second example's output at http://docs.php.net/wincache_ucache_add is not correct.

Reproduce code:
---------------
<?php
	$colors_array = array('green' => '5', 'Blue' => '6', 'yellow' => '7', 'cyan' => '8');
	var_dump(wincache_ucache_add($colors_array));
	var_dump(wincache_ucache_add($colors_array));
	var_dump(wincache_ucache_get('Blue'));
?>

Expected result:
----------------
array(0) { } array(4) { ["green"]=> int(-1) ["Blue"]=> int(-1) ["yellow"]=> int(-1) ["cyan"]=> int(-1) } string(1) "6" 

Actual result:
--------------
array(0) {}
bool(false)
string(1) "6"

As per documentation

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-14 02:04 UTC] ruslany at microsoft dot com
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

The change should show up here: http://docs.php.net/manual/en/book.wincache.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 14:01:32 2024 UTC