# sqlite_escape_string bug(?)

- Thread: https://externals.io/message/21191
- Original archive: https://news-web.php.net/php.internals/21191
- Started by ondrej@kmit.sk on 2005-12-12T09:12:43+00:00
- Messages: 1
- 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

---

## #21191 — ondrej@kmit.sk — 2005-12-12T09:12:43+00:00

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

Hi

After server upgrade I was found this possible bug in 
sqlite_esacpe_string function:

<?php

echo sqlite_escape_string('test');

?>

Output is:

PHP Fatal error:  Allowed memory size of 209715200 bytes exhausted 
(tried to allocate -1962934272 bytes) in /home/ondrej/test.php on line 3

Server is running Debian 3.1 on amd64 and PHP 4.4.0. I don't open bug 
report, because I can't reproduce this behavior in different version of 
PHP (PHP 5.1, gentoo, amd64). PHP 4.4.0  (same Debian 3.1) on i686 is 
without this issue.

At the production it's not possible upgrade PHP to higher version at 
this moment. Could someone try to reproduce this issue?

Thanks

-- 
Ondrej Ivanic
(ondrej@kmit.sk)
