Re[2]: [PHP] Re: Problem with function
| From: | ANR Daemon | Date: | Mon, 15 Sep 2008 14:15:22 +0000 |
| Subject: | Re[2]: [PHP] Re: Problem with function | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280173@lists.php.net to get a copy of this message | ||
Greetings, Jason Pruim.
In reply to Your message dated Friday, September 12, 2008, 18:09:19,
> On Sep 12, 2008, at 9:50 AM, Nathan Rixham wrote:
>> Jochem Maas wrote:
>>> Jason Pruim schreef:
>>>>
>>>> On Sep 12, 2008, at 9:34 AM, Nathan Rixham wrote:
>>>>
>>>>> Nathan Rixham wrote:
>>>>>> Jason Pruim wrote:
>>>>>>>
>>>>>>> On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote:
>>>>>>>
>>>>>>>> Jason Pruim wrote:
>>>>>>>>>
>>>>>>>> nothing obvious to me.. so debug more!
>>>>> [snip snip snip]
>>>>>
>>>>> have to say this:
>>>>>
>>>>> error_reporting( E_ALL ); at the top would help; + display_errors
>>>>> on in php.ini and problem is probably due to duplciate variable/
>>>>> constant definition in default.php or dbmysqliconnect.php
>>>>
>>>> I could agree more... which is why I have this:
>>>> ini_set('error_reporting', E_ALL);
>>>> But the log isn't showing anything...
>>> php.ini is what he said.
>>>> My error log for the site has this:
>>>>
>>>> [Fri Sep 12 09:40:54 2008] [debug] mod_rewrite.c(1643): [client
>>>> 192.168.0.253] mod_rewrite's internal redirect status: 0/10.
>>>>
>>>> --
>>>>
>>>> Jason Pruim
>>>> Raoset Inc.
>>>> Technology Manager
>>>> MQC Specialist
>>>> 11287 James St
>>>> Holland, MI 49424
>>>> www.raoset.com
>>>> japruim@raoset.com
>>>>
>>>>
>>>>
>>>>
>>>>
>> display_errors in php.ini is what you want; makes life easier while
>> developing; and good to have E_STRICT and E_ALL set for err
>> reporting; then you can catch every tiny potential future bug as
>> well :)
>>
>> ps did you read the one about your bind variables being in the wrong
>> order and too many?
> I did, and I checked them, and they looked good to me... I'll double
> check again and make sure to add E_STRICT... would it just be:
> ini_set('error_reporting', 'E_ALL' 'E_STRICT');?
Second argument to the ini_set required to be a number.
Why the hell you passing string to it?
That's evaluated to zero, effectively disabling error reporting.
E_ALL and E_STRICT is a *numerical constants*.
So,
ini_set('error_reporting', E_ALL | E_STRICT);
--
Sincerely Yours, ANR Daemon <anrdaemon@freemail.ru>