* @param array $bindings * @param bool $useReadPdo * @return array */ public function select($query, $bindings = [], $useReadPdo = true) { return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) { if ($this->pretending()) { return []; } // For select statements, we'll simply execute the query and return an array // of the database result set. Each element in the array will be a single // row from the database table, and will either be an array or objects. $statement = $this->prepared($this->getPdoForSelect($useReadPdo) ->prepare($query)); $this->bindValues($statement, $this->prepareBindings($bindings)); $statement->execute(); return $statement->fetchAll(); }); } /** * Run a select statement against the database and returns a generator. * * @param string $query * @param array $bindings * @param bool $useReadPdo * @return \Generator */ public function cursor($query, $bindings = [], $useReadPdo = true) { $statement = $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) { if ($this->pretending()) { return []; }
"Allowed memory size of 134217728 bytes exhausted (tried to allocate 4312705 bytes)"
Key | Value |
PATH | "/usr/local/bin:/bin:/usr/bin"
|
HTTP_ACCEPT | "*/*"
|
HTTP_HOST | "wedushare.onesolution.digital"
|
HTTP_USER_AGENT | "claudebot"
|
DOCUMENT_ROOT | "/home/qyazrzdz/wedushare.onesolution.digital/public"
|
REMOTE_ADDR | "18.208.203.36"
|
REMOTE_PORT | "47606"
|
SERVER_ADDR | "149.28.147.199"
|
SERVER_NAME | "wedushare.onesolution.digital"
|
SERVER_ADMIN | "webmaster@wedushare.onesolution.digital"
|
SERVER_PORT | "80"
|
REQUEST_SCHEME | "http"
|
REQUEST_URI | "/article/57/----------------------------------------------------------------------"
|
REDIRECT_URL | "/article/57/----------------------------------------------------------------------"
|
REDIRECT_REQUEST_METHOD | "GET"
|
REDIRECT_STATUS | "200"
|
SCRIPT_FILENAME | "/home/qyazrzdz/wedushare.onesolution.digital/public/index.php"
|
QUERY_STRING | "" |
SCRIPT_URI | "http://wedushare.onesolution.digital/article/57/----------------------------------------------------------------------"
|
SCRIPT_URL | "/article/57/----------------------------------------------------------------------"
|
SCRIPT_NAME | "/index.php"
|
SERVER_PROTOCOL | "HTTP/1.1"
|
SERVER_SOFTWARE | "LiteSpeed"
|
REQUEST_METHOD | "GET"
|
X-LSCACHE | "on"
|
PHP_SELF | "/index.php"
|
REQUEST_TIME_FLOAT | 1710828844.042
|
REQUEST_TIME | 1710828844
|
argv | [] |
argc | 0
|