php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24890 dbase_get_header_info() not known
Submitted: 2003-07-31 13:00 UTC Modified: 2003-07-31 13:26 UTC
From: smulliki at custom dot net Assigned:
Status: Not a bug Package: dBase related
PHP Version: 4CVS-2003-07-31 (stable) OS: WinME & Win2K
Private report: No CVE-ID: None
 [2003-07-31 13:00 UTC] smulliki at custom dot net
Description:
------------
I installed phpdev423.exe.  This installs apache, mysql,php4,phpmyadmin.  This install was made on WinME and all tested fine.  I then started writing php script to read a dbase file and create a mysql database, create tables, and write dbase data into tables. Open of dbase file worked fine. Connect to MYSQL worked fine. Get number of dbase records worked fine.  THEN I tried dbase_get_header_info() so that I could have the script create the table.  This function was not recognized.  I checked spelling carefully against documentation(php_manual.chm).  That function is documented but seems not to exist. I upgraded php to 4.3.2 and then to latest CVS snapshot. php_dbase.dll is the exact same size in all versions. 

Reproduce code:
---------------
$dbheaders = dbase_get_header_info($dbfile) or die("Error! Could not get header info.");

This code didn't produce my die error message. It said instead that the function was unknown.

Expected result:
----------------
I expect to get header info as documented in php_manual.chm.

This includes column name, field length, etc.

Actual result:
--------------
Error message.

function unknown

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-31 13:26 UTC] sniper@php.net
This new function will be in PHP 5, not in PHP 4.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC