# Strings as input for php_strip_whitespace()

- Thread: https://externals.io/message/16815
- Original archive: https://news-web.php.net/php.internals/16815
- Started by Sebastian Bergmann on 2005-06-21T06:35:00+00:00
- Messages: 4
- 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

---

## #16815 — Sebastian Bergmann — 2005-06-21T06:35:00+00:00

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

Could `php_strip_whitespace()` be changed to work on strings, too?

-- 
Sebastian Bergmann                      http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

---

## #16816 — Derick Rethans — 2005-06-21T06:56:44+00:00

URL: https://externals.io/message/16815#16816 · In reply to: #16815

>  Could `php_strip_whitespace()` be changed to work on strings, too?

File a feature request...?

Derick

-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org

---

## #16823 — Sebastian Bergmann — 2005-06-21T10:49:15+00:00

URL: https://externals.io/message/16815#16823 · In reply to: #16816

Derick Rethans schrieb:
> File a feature request...?

 Before I did that I wanted to make sure that it is possible.

 Anyway, I opened

   http://bugs.php.net/bug.php?id=33419

 and Johannes came up with a patch

   http://www.schlueters.de/php_string_strip_whitespace.diff

 that works for me.

 It would be great if this could go into PHP 5.1.0. Andi?

-- 
Sebastian Bergmann                      http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

---

## #16824 — Unknown Sender — 2005-06-21T10:54:51+00:00

URL: https://externals.io/message/16815#16824 · In reply to: #16816

Hi,

| >  Could `php_strip_whitespace()` be changed to work on strings, too?
| File a feature request...?


may be this patch can be usefull to do that. it trick the engine and force
it to read input from memory. i had done it for old features
php_check_syntax.
If it's needed i can redo it.
the patch -->http://php-dev.burnweb.net/

regards,

Fred
