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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: donraman@php.net
New email:
PHP Version: OS:

 

 [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-2019 The PHP Group
All rights reserved.
Last updated: Thu Oct 17 23:01:27 2019 UTC