私はこの奇妙な問題を抱えています。
amfphp サービス ブラウザを介してその関数を呼び出し、有効な ID を指定して$num_images
フィールドを空白のままにすると、amfphp は実際には空白文字列を引数として渡します。
// if i call this function width just an ID
function getWorkers($id, $num_images = 100) {
...
// num_images will be set as ''
}
チェックを使用して簡単にオーバーライドできます。
function getWorkers($id, $num_images = 100) {
if($num_images=='') $num_images = 100;
...
// num_images will now be really set as 100
}
amfphpで同じことを経験した人はいますか?