| |||||||||||
| |||||||||||
PHP Warnings Posted by Anji (Anji), 23 August 2002 When submitting a form to append to a text file, I get the error, "WARNING: REG_EMPTY" and have been unable to find any mention of the meaning of this in PHP references. Anybody any ideas?Posted by John_Moylan (John_Moylan), 24 August 2002 Don't quote this as a definitive answer, but I'll have a go.First off, did the error give you a line number? and if so did it happen to be near a regular expression? I think whats happening is you've passed an empty string to ereg(). Back in a few minutes, I'll go and check... jfp Posted by John_Moylan (John_Moylan), 24 August 2002 yep, seems so.I can replicate this error with the code below Code:
as you can see there is no regular expression in ereg (the regex should be the first argument) and it throws the error below. : REG_EMPTY in /home/moylan/test.php on line 3 Have you mistyped a variable? Do let me know what it was when you fix it though. jfp Posted by Anji (Anji), 28 August 2002 Thanks John, it was indeed a problem with an empty string being passed!This page is a thread posted to the opentalk forum
at www.opentalk.org.uk and
archived here for reference. To jump to the archive index please
follow this link.
|
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho |