6.0.0-beta1
9/22/25

[#5841] Variable conflict with sources example and _turba_export function
Summary Variable conflict with sources example and _turba_export function
Queue Turba
Queue Version HEAD
Type Bug
State Duplicate
Priority 2. Medium
Owners
Requester hfw (at) beep (dot) fdns (dot) net
Created 10/30/2007 (6537 days ago)
Due
Updated 10/30/2007 (6537 days ago)
Assigned
Resolved 10/30/2007 (6537 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/30/2007 01:45:10 AM Jan Schneider State ⇒ Duplicate
 
10/30/2007 01:42:17 AM hfw (at) beep (dot) fdns (dot) net Comment #2 Reply to this comment
I just saw that Mr. Schneider just created my ticket for me. Ticker 5840

Sorry Jan, i didnt have any time until right now.




10/30/2007 01:35:14 AM hfw (at) beep (dot) fdns (dot) net Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Variable conflict with sources example and _turba_export function
Queue ⇒ Turba
Reply to this comment
Hi,



I found that the sources.php.dist for "My Address Book"(personal_ldap),

have the variable $uid which conflicts with at least one function in 
lib/api.php function "_turba_export",

where the same variable is used and mess-up after first line

require_once dirname(__FILE__) . '/base.php';



simple one line perl to rename the $uid in sources.php.dist to a more 
unique name $source_uid

perl -pi -e 's/\$uid/\$source_uid/g' ./config/sources.php.dist



Regards,

Beppe

Saved Queries