[FX.php List] Bug in XML output of FMSA
Stephen Knight
stephen at fmwebschool.com
Fri Nov 17 11:03:12 MST 2006
Greetings everyone :)
The FMWebschool team has found a bug in the XML output of FMSA v8.04 (and
probably earlier), causing the -scriptnames action to return a result set
with all record ids and modification ids set to 0. Therefore only the last
script comes through in the data array with the key of " 0.0". To solve
this, I have added a simple check for duplicate keys which adds a sequential
"-1,-2,-3" values to the key, causing the second key to be "0.0-1".
To replicate the bug:
- create two scripts inside the database
- call $fx->FMScriptNames();
Replace the following line:
$this->currentRecord = $recordid . '.' . $modid;
with:
$this->currentRecord = $recordid . '.' . $modid;
if(isset($this->currentData[$this->currentRecord])) {
//Fix for identical record ids / mod ids due to an FM
bug which returns 0.0 for all entries in -scriptnames
$i =1;
while(isset($this->currentData[$this->currentRecord."-{$i}"])) {
$i++;
}
$this->currentRecord .= "-{$i}";
}
In Kindness
Stephen K Knight
http://www.fmwebschool.com
800.353.7950 / 386.453.5843
FMWebschool, we bring the web to life
FX.PHP PHP XML MySQL CDML ASP
-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Windi Sanjaya
Sent: Wednesday, November 15, 2006 7:37 PM
To: fx.php_list at mail.iviking.org
Subject: [FX.php List] Re: FX.php_List Digest, Vol 28, Issue 18
Oh this maillist is work :)
Hi all i'm the new guy who trying understand about filemaker, related with
fx.php.
I'm so sad because i can't upload image or file to container field at
filemaker use php or fx.php.
Am i wrong ???? or anybody can give me advice for this problem, or i must
order grabit-plugin..... ;(
cheers
windy
____________________________________________________________________________
________
Sponsored Link
$200,000 mortgage for $660/ mo -
30/15 yr fixed, reduce debt -
http://yahoo.ratemarketplace.com
_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org
http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list