|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-11-27 01:48 UTC] alan_k@php.net
[2012-11-27 01:48 UTC] alan_k@php.net
-Status: Open
+Status: Feedback
[2012-11-27 09:24 UTC] helpdesk at cinematek dot be
[2012-11-27 09:24 UTC] helpdesk at cinematek dot be
-Status: Feedback
+Status: Open
[2012-11-27 12:56 UTC] helpdesk at cinematek dot be
[2016-08-05 14:37 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2016-08-05 14:37 UTC] cmb@php.net
[2016-08-14 04:22 UTC] pecl-dev at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 13:00:02 2025 UTC |
Description: ------------ $dbf_file="/mnt/db/part_cin.DBF"; /*Get filmcat metadata*/ $db = dbase_open($dbf_file, 0); $records = @dbase_numrecords($db) or die("Error reading filmcat's number of fields"); echo $records; The problem does not occur on PHP Version 5.3.10-1ubuntu3.4 but on CentOS PHP Version 5.3.3. There is the dbf file : http://cinematek.be/ftp/upload/it/part_cin.dbf the phpinfo for centos : http://cinematek.be/ftp/upload/it/phpinfo_not_ok.pdf the phpinfo on ubuntu : http://cinematek.be/ftp/upload/it/phpinfo_ok.pdf Test script: --------------- $dbf_file="/mnt/db/part_cin.DBF"; /*Get filmcat metadata*/ $db = dbase_open($dbf_file, 0); $records = @dbase_numrecords($db) or die("Error reading filmcat's number of fields"); echo $records; Expected result: ---------------- get number of records. 37 Actual result: -------------- unable to open database. Warning: dbase_open(): unable to open database /mnt/db/filmcat.dbf in /home/lloyd/public_html/metadata.class.php on line 17 Warning: dbase_numrecords(): Unable to find database for identifier 0 in /home/lloyd/public_html/metadata.class.php on line 19 Error reading /mnt/db/filmcat.dbf number of fields