# [PATCH] Bug 47002 - Fields truncated

- Thread: https://externals.io/message/42620
- Original archive: https://news-web.php.net/php.internals/42620
- Started by Henrique M. Decaria on 2009-01-14T17:16:28+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

---

## #42620 — Henrique M. Decaria — 2009-01-14T17:16:28+00:00

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

Greetings PHP people,

I have written a patch to resolve the issue mentioned in the subject. Also I
wrote a small test case for it. This patch is to be applied on PHP5_2 CVS.
Still in this matter, I have written a patch for dbase.c (this was based on
Felipe's patch which seems to have been lost) to use zend_parse_parameters
and also to check for the PHP version to define if the arginfo should
receive a static identifier or not.
The patches are attached, and so is the test case.
These files can also be found in the following URLs:

Patch for the bug: http://felipe.ath.cx/typoon/dbase_php5.2.9_bug47002.diff
Patch for dbase.c: http://felipe.ath.cx/typoon/dbase_php5.2.9.diff
Test case for the bug: http://felipe.ath.cx/typoon/bug47002.phpt

Currently I am also working on getting the dbase fixed in the PECL
repositories so we can have a release (just finishing writing some test
cases).

In case there are any doubts or problems, please let me know so I can
verify.

BTW, I am Gilgamesh on #php.pecl (sometimes shows up as typoon because of
problems with mibbit). So you can also contact me there :)

Thanks!

Henrique

---

## #42621 — Henrique M. Decaria — 2009-01-14T17:39:20+00:00

URL: https://externals.io/message/42620#42621 · In reply to: #42620

Oh, I missed one thing.
I also had to fix test 001.phpt
Attached is the patch for it, which can also be found in the following url:
http://felipe.ath.cx/typoon/001.phpt.diff.txt

Sorry for the confusion :$

Thanks!

Henrique

On Wed, Jan 14, 2009 at 11:16 AM, Henrique M. Decaria <typoon@gmail.com>wrote:

> Greetings PHP people,
>
> I have written a patch to resolve the issue mentioned in the subject. Also
> I wrote a small test case for it. This patch is to be applied on PHP5_2 CVS.
> Still in this matter, I have written a patch for dbase.c (this was based on
> Felipe's patch which seems to have been lost) to use zend_parse_parameters
> and also to check for the PHP version to define if the arginfo should
> receive a static identifier or not.
> The patches are attached, and so is the test case.
> These files can also be found in the following URLs:
>
> Patch for the bug:
> http://felipe.ath.cx/typoon/dbase_php5.2.9_bug47002.diff
> Patch for dbase.c: http://felipe.ath.cx/typoon/dbase_php5.2.9.diff
> Test case for the bug: http://felipe.ath.cx/typoon/bug47002.phpt
>
> Currently I am also working on getting the dbase fixed in the PECL
> repositories so we can have a release (just finishing writing some test
> cases).
>
> In case there are any doubts or problems, please let me know so I can
> verify.
>
> BTW, I am Gilgamesh on #php.pecl (sometimes shows up as typoon because of
> problems with mibbit). So you can also contact me there :)
>
> Thanks!
>
> Henrique
