# last Tidy api changes

- Thread: https://externals.io/message/8035
- Original archive: https://news-web.php.net/php.internals/8035
- Started by Nuno Lopes on 2004-02-21T11:16:24+00:00
- Messages: 5
- 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

---

## #8036 — Derick Rethans — 2004-02-21T11:16:05+00:00

URL: https://externals.io/message/8035#8036 · In reply to: #8035

> I'm currently documenting the Tidy extension and I've noted that John has
> changed the API in PHP 5.
> He changed all is_xxx to isXxx. This makes Tidy 1 and 2 (PHP 4 and 5)
> complitely imcompatible.
>
> I don't see any advantages in changing the API. And I prefer the is_xxx
> form....
>
> Is it possible to revert this change, please?
> (http://cvs.php.net/diff.php/php-src/ext/tidy/tidy.c?r1=1.35&r2=1.36)

No?

Derick

---

## #8035 — Nuno Lopes — 2004-02-21T11:16:24+00:00

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

Hello all,

I'm currently documenting the Tidy extension and I've noted that John has
changed the API in PHP 5.
He changed all is_xxx to isXxx. This makes Tidy 1 and 2 (PHP 4 and 5)
complitely imcompatible.

I don't see any advantages in changing the API. And I prefer the is_xxx
form....

Is it possible to revert this change, please?
(http://cvs.php.net/diff.php/php-src/ext/tidy/tidy.c?r1=1.35&r2=1.36)


Thanks,
Nuno

---

## #8037 — Marcus Boerger — 2004-02-21T11:23:39+00:00

URL: https://externals.io/message/8035#8037 · In reply to: #8035

Hello Nuno,

The point is that we discussed this very long and came to the conclusion
that all php5 oo extensions should follow studlyCaps convention in their
method naming. Hence this will not be changed again.

Saturday, February 21, 2004, 12:16:24 PM, you wrote:

> Hello all,

> I'm currently documenting the Tidy extension and I've noted that John has
> changed the API in PHP 5.
> He changed all is_xxx to isXxx. This makes Tidy 1 and 2 (PHP 4 and 5)
> complitely imcompatible.

> I don't see any advantages in changing the API. And I prefer the is_xxx
> form....

> Is it possible to revert this change, please?
> (http://cvs.php.net/diff.php/php-src/ext/tidy/tidy.c?r1=1.35&r2=1.36)


> Thanks,
> Nuno




-- 
Best regards,
 Marcus                            mailto:helly@php.net

---

## #8038 — Nuno Lopes — 2004-02-21T11:54:28+00:00

URL: https://externals.io/message/8035#8038 · In reply to: #8037

> Hello Nuno,
>
> The point is that we discussed this very long and came to the conclusion
> that all php5 oo extensions should follow studlyCaps convention in their
> method naming. Hence this will not be changed again.
>
> -- 
> Best regards,
>  Marcus                            mailto:helly@php.net
>


I think that the is_xxx form is more readable, but as my opion doesn't
count.... I think this rule should be applied only in new
functions/extensions.

If you really decide not to change this, thats more work to me.... :) The
documentation will become more confusing, but.....


Nuno

---

## #8039 — Andi Gutmans — 2004-02-21T14:05:21+00:00

URL: https://externals.io/message/8035#8039 · In reply to: #8037

At 11:54 21/02/2004 +0000, Nuno Lopes wrote:
> > […]
>
>
>I think that the is_xxx form is more readable, but as my opion doesn't
>count.... I think this rule should be applied only in new
>functions/extensions.
>
>If you really decide not to change this, thats more work to me.... :) The
>documentation will become more confusing, but.....

I think Tidy is new enough so that this BC break will affect very few.

Andi
