php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #36640 get_parent_class() return different result on 504 and 512
Submitted: 2006-03-07 06:58 UTC Modified: 2006-03-07 09:32 UTC
From: happyaccident at citiz dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.1.2 OS: redhat7.3
Private report: No CVE-ID: None
 [2006-03-07 06:58 UTC] happyaccident at citiz dot net
Description:
------------
var_dump(get_parent_class()) return different result on php version 5.0.4 and 5.1.2, but it's not mentioned on php manual.

Reproduce code:
---------------
<?php
var_dump(get_parent_class());
?>

Actual result:
--------------
php5.0.4: Warning: Wrong parameter count for get_parent_class()..............

php5.1.2: bool(false)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-07 08:40 UTC] tony2001@php.net
Reclassified as docu problem.
 [2006-03-07 09:32 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

"If called without parameter outside object, this function returns FALSE (or NULL with a warning before PHP 5.1.0)."
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 19:01:32 2025 UTC