php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11246 hw_incollections() misbehaving
Submitted: 2001-06-01 18:58 UTC Modified: 2007-04-04 20:10 UTC
From: torben@php.net Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.0 Latest CVS (2001-06-01) OS: Linux 2.2.14/Mandrake 7
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: torben@php.net
New email:
PHP Version: OS:

 

 [2001-06-01 18:58 UTC] torben@php.net
Using 1 for the last parameter to hw_incollections() simply results in the entire array given as the 
collection_ids parameter being returned, regardless of what the actual object/collection relationships
may be. Using 0 as the last parameter works as expected.


$arr = hw_incollections($hw_link, array(25, 169, 189), array(148, 218), 1);
print_r($arr);

$arr = hw_incollections($hw_link, array(0), array(148, 218), 1);
print_r($arr);

$arr = hw_incollections($hw_link, array(25, 169, 189), array(148, 218, 88495), 1);
print_r($arr);

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-25 09:07 UTC] derick@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Jul 06 16:05:46 2022 UTC