这是断言的代码。我的php版本是5.2.9&我得到了正确的计数($ this-> states)。
$this->states = $this->database->get_multiple_rows("select STATUS_CODES_CODE, STATUS, BEHAVIOR, PREVIOUS
FROM EXP_STATUS_CODES
WHERE SOURCE = 'shipment'
ORDER BY STATUS_CODES_CODE ASC");
assert( count($this->states)." > 0", "Unable to load states for shipments" );
任何人都可以告诉我为什么我会收到错误参数的警告。