|  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: 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
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:
Solve the problem:
28 + 23 = ?
Subscribe to this entry?

 [2001-06-01 18:58 UTC]
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);

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

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-25 09:07 UTC]
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

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: Sun Jul 03 17:05:45 2022 UTC