ID:               26791
 User updated by:  danielc at analysisandsolutions dot com
 Reported By:      danielc at analysisandsolutions dot com
 Status:           Bogus
 Bug Type:         MSSQL related
 Operating System: Windows 2000
 PHP Version:      4.3.4
 New Comment:

Sniper:

Don't be so dismissive.  Most ini_set()'s work just fine regardless of
when they're called.  Sessions aren't a good example because all of the
session stuff has to be processed before any output.

If the team doesn't want to spend time fixing this, please turn this
into a documentation bug for ref.mssql.php, where a note should be made
about the need to set these before connecting to a db.


Previous Comments:
------------------------------------------------------------------------

[2004-01-08 23:21:09] [EMAIL PROTECTED]

Of course the ini_set() has to be called before anything else is what
might be using the setting. (this is the case for ANY setting, not just
these mssql.* settings, see e.g. session stuff for examples)


------------------------------------------------------------------------

[2004-01-08 13:51:48] danielc at analysisandsolutions dot com

Know what?  The problem was where the ini_set() calls are made.  They
must be done BEFORE the connection is established.  Once it's made, it
can't be changed.

Oddly, it doesn't matter when one calls ini_set() for
mssql.datetimeconvert.

So, I'm not sure this bug report should be closed, called bogus or not.
 It might be nice to have these work regardless of where they are
called.  If no change is made, the behavior needs to be documented.

Couple things to keep in mind about my config:
   Using CGI
   Loading mssql via php.ini extensions
   Versions 4.3.4 and php5-win32-200401081130 snapshot

------------------------------------------------------------------------

[2004-01-08 00:12:28] [EMAIL PROTECTED]

This seams to be related to how the extension is loaded.

ini_set() works fine in php4 whn the extension is loaded from php.ini,
but not when dl() is used.

The dl() will also cause the output from phpinfo() to be incomplete!

------------------------------------------------------------------------

[2004-01-06 18:56:04] [EMAIL PROTECTED]

Frank, nothing has changed in that function. Are you sure this really
works with PHP 5..?


------------------------------------------------------------------------

[2004-01-05 02:44:12] [EMAIL PROTECTED]

This works in PHP5 but not in PHP4.3.x (tested on the cvs version). Did
something happen to the ini_set() funtion ?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/26791

-- 
Edit this bug report at http://bugs.php.net/?id=26791&edit=1

Reply via email to