# Overload objects

- Thread: https://externals.io/message/1113
- Original archive: https://news-web.php.net/php.internals/1113
- Started by epplestun on 2003-04-30T13:30:22+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #1113 — epplestun — 2003-04-30T13:30:22+00:00

URL: https://externals.io/message/1113#1113

Hi, i have this error:
 "Cannot create references to/from string offsets nor overloaded objects"

The line who emits this is : $array[$i + $offset] =& mysql_fetch_array($result);
The version of php is: PHP 4.3
$i and $offsset are integers.

Why this error?¿

---

## #1114 — Rasmus Lerdorf — 2003-04-30T13:58:45+00:00

URL: https://externals.io/message/1113#1114 · In reply to: #1113

Don't use =& here.  It doesn't buy you anything.

-Rasmus



> Hi, i have this error:
>  "Cannot create references to/from string offsets nor overloaded objects"
>
> The line who emits this is : $array[$i + $offset] =& mysql_fetch_array($result);
> The version of php is: PHP 4.3
> $i and $offsset are integers.
>
> Why this error??
