facebook/hiphop-php — Issue #481: PHP implode function throwing exception while compiling code.
Author: nilayparikh
Created: 2012-02-01 01:42:57+00:00
State: open

..............
saving code errors...
compiling and linking CPP files...
/tmp/hphp_ZThgNo/cpp/001.cpp: In member function \xe2\x80\x98HPHP::Array HPHP::c_BP_Activity_Activity::t_get(HPHP::CVarRef, HPHP::CVarRef, HPHP::CVarRef, HPHP::Variant, HPHP::Variant, HPHP::CVarRef, HPHP::CVarRef, HPHP::CVarRef, HPHP::CVarRef, HPHP::Variant)\xe2\x80\x99:\n/tmp/hphp_ZThgNo/cpp/001.cpp:1922:72: error: call of overloaded \xe2\x80\x98VarNR(HPHP::Sequence&)\xe2\x80\x99 is ambiguous\n/tmp/hphp_ZThgNo/cpp/001.cpp:1922:72: note: candidates are:\n/home/nilayparikh/netbeans/hiphop/hiphop-php/src/runtime/base/type_variant.h:1640:3: note: HPHP::VarNR::VarNR(HPHP::litstr) \n/home/nilayparikh/netbeans/hiphop/hiphop-php/src/runtime/base/type_variant.h:1640:3: note: no known conversion for argument 1 from \xe2\x80\x98HPHP::Sequence {aka HPHP::Variant}\xe2\x80\x99 to \xe2\x80\x98HPHP::litstr {aka const char*}\xe2\x80\x99\n/home/nilayparikh/netbeans/hipho
.....................

I'm getting call of overloaded/is ambiguous error when php code is using "impload".

http://php.net/manual/en/function.implode.php

001.cpp

}
}
{
LINE(176,0);
const Variant &tmp0((x_array_unique(VarNR((v_activity_user_ids)))));
const String &tmp1((x_implode(NAMVAR(s_svsd332baa7, ","), tmp0)));
v_activity_user_ids = tmp1;
}
if (!(empty(v_activity_user_ids))) {

exception in Line 176.
PHP code:

Line 176. $activity_user_ids = implode( ',', array_unique( (array)$activity_user_ids ) );

I'm trying to compile buddypress plugin.

Any help would be appreciated.