[PHP-DEV] CVS Account Request: abonamous

2002-12-06 Thread Abdul-Kareem Abo-Namous
oracle extension development

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] 'include' function

2002-12-06 Thread Krzysztof Socki
Hello!
Can anyone tell me if it's possible to extent PHP with a function that
includes other PHP file? I know that 'include' is not a function, is it
possible to work it around? I need a function that includes a file
respective to the location of the running script. Maybe I could extend the
parser to use an alias of 'include' with a constant file path? I'd be
grateful for your help. Thanks in advance.

Krzysiek Socki
[EMAIL PROTECTED]



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] sapi/servlet configuration error

2002-12-06 Thread Akos Maroy
Sebastian Bergmann wrote:

Ray Hunter wrote:


Does anyone have an idea about what i need to do to fix this?



  I just tested sapi/servlet with Tomcat 4.1.12 on Windows and the
  segfaults I experienced prior to the Tony's patch are still there:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0xC34AB15
Function=zend_startup_module+0xD5
Library=E:\home\php\php4\Release_TS_inline\php4ts.dll

Current Java thread:
	at net.php.servlet.startup(Native Method)
	at net.php.servlet.init(servlet.java:156)


I have the same problem under Linux.


Akos


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] RFC: ODBC and PHP

2002-12-06 Thread Nick Gorham
Dan Kalowsky wrote:

On Tue, 10 Sep 2002, Shane Caraveo wrote:



Hmm, is there no way to make the functions work with both odbc versions?
 Have an odbc_set_version(int) function that can set the version of
odbc to use.  The default can be version 3.  This way, with the addition
of a single function call, scripts can provide BC.



This is a tricky question really.  Theoretically, yes it should be
possible to allow this.  You may run into issues with some of the result
sets, but the connections should still be the same.  You couldn't really
do it with a function like odbc_set_version, as my understanding of ODBC
states you must declare which version type you are using at compile time.
If you have some documentation stating otherwise, I'd be interested in
reading it.


It depends on if a driver manager is involved, if it is, you can select 
the behavour you want before allocating the connect handle. But I 
wouldn't expect that many of the changes would be that important, IF you 
use a driver manager, if not, then you have to choose which set of ODBC 
API's you are compiling to.

The reality is, I don't know.  All ODBC3 drivers should be able to utilize
the deprecated functionality just fine, but the mapping is an unknown
and dependent upon vendor implementation.  Going the other way, of course,
is not going to work.


Not allways the case, again if a DM is there then yes agreed, but 
without the DM, there are ODBC 3 drivers that don't implement the older 
API, they assume that the DM will tidy this up for them.

But I don't see a reason to keep such BC at this point.  The problem with
the current system can be seen with bugs in the result sets.  The one
area specifically mentioned above.  Users are still going to ask Why
doesn't my select work? while using NTEXT or something non-compliant.
The CURSOR type cannot be changed with the current system.  This in itself
leads to a slower implementation, a (unnecessarily) larger memory
footprint, and in DB2 systems a memory leak.


Having a real way of changing the cursor type would IMHO fix a lot of 
the current php_odbc problems.

Hey at least I haven't gone as drastic as I originally thought, and asked
to drop support specific for things like DB2, Solid, Empress, etc, and
only support multi-driver systems (unixODBC, i-ODBC, and Windows ODBC).  :)
Although I still think that would make the most sense and be the easiest
to support on our end of things.


Well I am of course biased :-) but I still can't see the real downside 
of that... Perls DBD:ODBC for example has come to the conclusion that 
DM's do more good than harm.

---
Nick Gorham


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] 'include' function

2002-12-06 Thread Hartmut Holzgraefe
Krzysztof Socki wrote:

Hello!
Can anyone tell me if it's possible to extent PHP with a function that
includes other PHP file? I know that 'include' is not a function, is it
possible to work it around? I need a function that includes a file
respective to the location of the running script. Maybe I could extend the
parser to use an alias of 'include' with a constant file path? I'd be
grateful for your help. Thanks in advance.


function include_me($path) {
  include $path;
}

should do the trick?


--
Six Offene Systeme GmbH http://www.six.de/
i.A. Hartmut Holzgraefe
Email: [EMAIL PROTECTED]
Tel.:  +49-711-99091-77


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Odp: [PHP-DEV] 'include' function

2002-12-06 Thread Krzysztof Socki

U¿ytkownik Hartmut Holzgraefe [EMAIL PROTECTED] w wiadomooci do grup
dyskusyjnych napisa³:[EMAIL PROTECTED]
 Krzysztof Socki wrote:
  Hello!
  Can anyone tell me if it's possible to extent PHP with a function that
  includes other PHP file? I know that 'include' is not a function, is it
  possible to work it around? I need a function that includes a file
  respective to the location of the running script. Maybe I could extend
the
  parser to use an alias of 'include' with a constant file path? I'd be
  grateful for your help. Thanks in advance.

 function include_me($path) {
include $path;
 }

 should do the trick?

I need a function that includes a file, but doesn't show that something is
included. I would like to be able to do something like this:

ala();  //  include some file - the name of the included file is
constant respective to the script location
ela(); ola(); // use functions defined at the included file

Can you help?

KS.



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] CVS Account Request: sjr

2002-12-06 Thread Stijn de Reede
I'd like a cvs account because I'm helping Alan Knowles out in developing the 
DB_DataObject package. I've contributed the joinAdd() function, and helped out finding 
some bugs. He suggested I should get a PHP cvs account, so here I am :).
I am currently only using (and developing) DB_DataObject and HTML_Template_Flexy, but 
I may release my own package some time (maybe a ubb-tag parser). I guess I should 
apply for a pear.php.net account then too.
Anyway, that's it for me.

BTW: I'm a frequent visitor of php.pear.general, php.pear.dev and php.pear.webmaster 
(is someone ever going to fix the broken documentation download links?)

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DEV] 'include' function

2002-12-06 Thread Esteban F.
function ala() {
   include file.php;
}


Krzysztof Socki [EMAIL PROTECTED] escribió en el mensaje de noticias
[EMAIL PROTECTED]

 U¿ytkownik Hartmut Holzgraefe [EMAIL PROTECTED] w wiadomooci do grup
 dyskusyjnych napisa³:[EMAIL PROTECTED]
  Krzysztof Socki wrote:
   Hello!
   Can anyone tell me if it's possible to extent PHP with a function that
   includes other PHP file? I know that 'include' is not a function, is
it
   possible to work it around? I need a function that includes a file
   respective to the location of the running script. Maybe I could extend
 the
   parser to use an alias of 'include' with a constant file path? I'd be
   grateful for your help. Thanks in advance.
 
  function include_me($path) {
 include $path;
  }
 
  should do the trick?
 
 I need a function that includes a file, but doesn't show that something is
 included. I would like to be able to do something like this:

 ala();  //  include some file - the name of the included file
is
 constant respective to the script location
 ela(); ola(); // use functions defined at the included file

 Can you help?

 KS.





-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] sapi/servlet configuration error

2002-12-06 Thread Ray Hunter
I can even get it to compile on linux at all.

I keep getting errors with java.c


On Thu, 2002-12-05 at 23:36, Sebastian Bergmann wrote:
 Ray Hunter wrote:
  Does anyone have an idea about what i need to do to fix this?
 
   I just tested sapi/servlet with Tomcat 4.1.12 on Windows and the
   segfaults I experienced prior to the Tony's patch are still there:
 
 An unexpected exception has been detected in native code outside the VM.
 Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0xC34AB15
 Function=zend_startup_module+0xD5
 Library=E:\home\php\php4\Release_TS_inline\php4ts.dll
 
 Current Java thread:
   at net.php.servlet.startup(Native Method)
   at net.php.servlet.init(servlet.java:156)
   at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:924)
   - locked 031B4BF8 (a org.apache.catalina.core.StandardWrapper)
   at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658)
   - locked 031B4BF8 (a org.apache.catalina.core.StandardWrapper)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
   at
 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at
 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
   at
 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
   at
 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
   at
 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
   at
 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
   at
 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
   at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
   at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
   at java.lang.Thread.run(Thread.java:536)
 
 Dynamic libraries:
 0x0040 - 0x00406000   c:\programme\java\bin\java.exe
 0x7788 - 0x77901000   C:\WINNT\System32\ntdll.dll
 0x77DA - 0x77DFD000   C:\WINNT\system32\ADVAPI32.dll
 0x77E7 - 0x77F33000   C:\WINNT\system32\KERNEL32.DLL
 0x77D2 - 0x77D91000   C:\WINNT\system32\RPCRT4.DLL
 0x7800 - 0x78046000   C:\WINNT\system32\MSVCRT.dll
 0x6D33 - 0x6D45C000   c:\programme\java\jre\bin\client\jvm.dll
 0x77E0 - 0x77E65000   C:\WINNT\system32\USER32.dll
 0x77F4 - 0x77F7C000   C:\WINNT\system32\GDI32.DLL
 0x7754 - 0x77571000   C:\WINNT\System32\WINMM.dll
 0x6D1D - 0x6D1D7000   c:\programme\java\jre\bin\hpi.dll
 0x6D30 - 0x6D30D000   c:\programme\java\jre\bin\verify.dll
 0x6D21 - 0x6D229000   c:\programme\java\jre\bin\java.dll
 0x6D32 - 0x6D32D000   c:\programme\java\jre\bin\zip.dll
 0x6D2D - 0x6D2DE000   C:\Programme\Java\jre\bin\net.dll
 0x74FC - 0x74FC9000   C:\WINNT\System32\WSOCK32.dll
 0x74FA - 0x74FB3000   C:\WINNT\System32\WS2_32.DLL
 0x74F9 - 0x74F98000   C:\WINNT\System32\WS2HELP.DLL
 0x7783 - 0x7783C000   C:\WINNT\System32\rnr20.dll
 0x7797 - 0x77994000   C:\WINNT\System32\DNSAPI.DLL
 0x7731 - 0x77323000   C:\WINNT\System32\iphlpapi.dll
 0x774F - 0x774F5000   C:\WINNT\System32\ICMP.DLL
 0x772F - 

[PHP-DEV] SQL Error

2002-12-06 Thread Daniel
Please help. I have a basic scipt:

$connection_id=odbc_connect($DSN,$user,$pass);
$sql=select * from whatever;
$stmt=odbc_prepare($connection_id,$sql);
$result=odbc_execute($connection_id,$stmt);

this script used to work on RH-7.3 with php-4.1.2
the script will not work anymore when i installed RH-8 using php-4.2.2
the connection IS successful, but when i try anything after that i get this
error:

Warning: SQL error: [unixODBC][IBM][iSeries Access ODBC Driver]Error in host
server data stream., SQL state S1000 in SQLPrepare

i can connect,prepare and execute statements from c++ so it must be php
specific?
please help!!





-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] persistent java virtual machine under PHP

2002-12-06 Thread Tony J. White

 This is contrary to my experiences. But we have discussed this earlier
 today.

After reviewing the thread, I think the problem you are experiencing is related
to the fact that each instance of PHP is running a seperate JVM.  It's not
that the JVM is being destroyed.

Therefore when you have apache running with say 5 httpd children, you will be
running 5 seperate JVM's each with it's own environment.  So if you tried
to keep a Java variable active from request to request, it would disappear
once your apache KeepAliveTimeout was up.

Does that sound about right?

-Tony




-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Cookie Session Problem

2002-12-06 Thread Michael Conroy
I'm using cookies for a php session.

The problem i'm having is that the session id is showing up in the url when
a user moves to the next page in the site, but then after that it stop
showing up in the url (the way it should be).  I don't want the session id
(periodically) showing up in the url this causes me problems on certain
things.

Why does this happen?

Mike Conroy
Web Services University at Buffalo



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: Cookie Session Problem

2002-12-06 Thread Ivan Ristic


The problem i'm having is that the session id is showing up in the url when
a user moves to the next page in the site, but then after that it stop
showing up in the url (the way it should be).  I don't want the session id
(periodically) showing up in the url this causes me problems on certain
things.

Why does this happen?


  It is a feature to support users that do not have cookies or have
  cookies disabled. The sessionid is showing only on the first page
  access; once PHP establishes that the user supports cookies it
  will stop changing URLs.

  It is documented here: http://www.php.net/manual/en/ref.session.php

  You can turn it off by setting session.use_trans_sid parameter
  to off (btw, it is off by default).

Bye,
Ivan


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Cookie Session Problem

2002-12-06 Thread Chris Shiflett
--- Michael Conroy [EMAIL PROTECTED] wrote:
 I'm using cookies for a php session.
 
 The problem i'm having is that the session id is showing
 up in the url when a user moves to the next page in the
 site, but then after that it stop showing up in the url
 (the way it should be). I don't want the session id
 (periodically) showing up in the url this causes me
 problems on certain things.

It is session.use_trans_sid. Locate it in your php.ini and
turn it off like this:

session.use_trans_sid = 0

Chris

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] thanks

2002-12-06 Thread Michael Conroy
thanks for the help



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] persistent java virtual machine under PHP

2002-12-06 Thread Akos Maroy
Tony J. White wrote:

After reviewing the thread, I think the problem you are experiencing is related
to the fact that each instance of PHP is running a seperate JVM.  It's not
that the JVM is being destroyed.

Therefore when you have apache running with say 5 httpd children, you will be
running 5 seperate JVM's each with it's own environment.  So if you tried
to keep a Java variable active from request to request, it would disappear
once your apache KeepAliveTimeout was up.

Does that sound about right?


well, I traced it and _never_ saw a call to jvm_destroy() in the java 
extension code.


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Java Extension Build Method

2002-12-06 Thread Tony J. White

 Under the heading Build java module with -ljava you mention that there
 were crashing problems because libjava.so was linked agains pthread and
 apache wasn't. This is not uncommon problem for other libraries such as
 oci8. You can link apache with pthread which will prevent the segfaults. See
 oci8 manual page for instructions.

Thanks for the tip.

I built apache with -lpthread and I was able to get a little bit farther with
linking the java module with -ljava.For the first time I was able to run the
following script through apache:
http://www.tjw.org/php_java/classloader.phps

However, I had other problems that keep this build method from working right.

The code
$system = new Java('java.lang.System');
would hang apache.  Why the more advanced classloader.php example worked and
this one didn't I have no idea.   Both examples worked fine in the CLI
build of PHP.

I also noticed that if i create the JVM in PHP_MINIT_FUNCTION() instead of
creating it on the first request for java, apache hangs for every java
request.  This works fine in the CLI build.  Since I get no segfault and
strace -p gives me no output at all, I'm stumped.

-Tony



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Reduce codebase

2002-12-06 Thread Stig S. Bakken
--enable-maintainer-mode?

 - Stig

On Thu, 2002-12-05 at 17:16, Marcus Börger wrote:
 In a discussion about image.c code i was reminded that we do not need
 to bother with emalloc returning NULL or array_init returning FAILURE.
 Unforuately there are hundreds of such cases in PHP. When removing
 all these parts with all the necessary checks and error messages we
 could reduce the code base
 
 Indeed there is a simple way of doing so for array_init: change those
 functions to be of return type void.
 
 To make everybodys life easier i suggest we create a new configure
 option --enable-developer or such which simply creates a define
 that allows such changes. I would the like to have --enable-developer
 being a shortcut for --enable-debug also (zts would break some builds
 otherwise that also). When all developers would use this option i
 guess such changes could be done easily and they would not harm
 the normal users.
 
 marcus
 

--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: bug of the day: $this

2002-12-06 Thread Stig S. Bakken
It won't be different in ZE2.  This is not a bug though, but a tricky
design issue.  The problem is figuring out at runtime when to set $this
or not in a method.  What most people would probably find intuitive, is
that $this was set only in methods called in the object, but this would
require pretty expensive checks for every method call.

Andi can shed more light on this if needed.

 - Stig

On Wed, 2002-12-04 at 00:25, Markus Fischer wrote:
 I think issue is/will be adressed in ZendEngine2 but I could
 be wrong. I suggest inquiring at the engine2 list.
 
 On Tue, Dec 03, 2002 at 08:53:25PM +, Ivan Ristic wrote : 
  Balazs Nagy wrote:
  Hi,
  
  $this stays defined when an instantatiated member function calls a
  non-instantiated member function.
  
Correct. I actually find it quite interesting. :)
It can be useful at times, I have used it in my
libraries as a feature.
  
There is an interesting article on the subject:
http://www.advogato.org/article/470.html

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: bug of the day: $this

2002-12-06 Thread Stig S. Bakken
On Wed, 2002-12-04 at 01:32, Balazs Nagy wrote:
 On Tue, 2002-12-03 at 21:53, Ivan Ristic wrote:
  Balazs Nagy wrote:
   Hi,
   
   $this stays defined when an instantatiated member function calls a
   non-instantiated member function.
  
 Correct. I actually find it quite interesting. :)
 It can be useful at times, I have used it in my
 libraries as a feature.
  
 There is an interesting article on the subject:
 http://www.advogato.org/article/470.html
 
 Now, please tell me how can you decide whether the member function is
 called as an object element (eg. $obj-func()) or as a class element
 (eg. class::func()).
 
 Basic functionality is killed with this so-called feature.  The right
 way should be a call stack, with for example a $_STACK array, or through
 stack functions (eg. this_object(), previous_object()).

this_object()?  LPC? :)

 - Stig


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: bug of the day: $this

2002-12-06 Thread George Schlossnagle
Why do the (cheap) checks implemented in debug_backtrace not work for 
this?

George

On Friday, December 6, 2002, at 04:11  PM, Stig S. Bakken wrote:

It won't be different in ZE2.  This is not a bug though, but a tricky
design issue.  The problem is figuring out at runtime when to set $this
or not in a method.  What most people would probably find intuitive, is
that $this was set only in methods called in the object, but this would
require pretty expensive checks for every method call.

Andi can shed more light on this if needed.

 - Stig

On Wed, 2002-12-04 at 00:25, Markus Fischer wrote:

I think issue is/will be adressed in ZendEngine2 but I could
be wrong. I suggest inquiring at the engine2 list.

On Tue, Dec 03, 2002 at 08:53:25PM +, Ivan Ristic wrote :

Balazs Nagy wrote:

Hi,

$this stays defined when an instantatiated member function calls a
non-instantiated member function.


  Correct. I actually find it quite interesting. :)
  It can be useful at times, I have used it in my
  libraries as a feature.

  There is an interesting article on the subject:
  http://www.advogato.org/article/470.html


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DEV] Re: Cookie Session Problem

2002-12-06 Thread John Coggeshall
   You can turn it off by setting session.use_trans_sid parameter
   to off (btw, it is off by default).

You really should use the session.use_only_cookies directive.

John


Bye,
Ivan


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] register_shutdown_function = register_offline_function

2002-12-06 Thread Zeev Suraski
Brian,

BC is an issue, always, but as the person who wrote both the original 
version and the fix, I can tell you that the original behavior was not 
intended to begin with, and because it couldn't be duplicated on any other 
server than Apache, it was changed to both reflect the intended behavior, 
and allow us to implement it properly on all web servers.

Zeev

At 17:56 05/12/2002, Brian Moon wrote:
Has the new function been created yet and if not when?

We have just spent 2 weeks investigating why our pages started dragging to
find out that register_shutdown_function is BROKE.  I am a little
discouraged from what I have read on this.  It seems that BC is only a
concern when the right person likes the old way it worked.  When the right
people don't like the way things work, BC is thrown out the window and code
is broken.  fgetcsv is broke and has been broke IMO.  It causes segfaults.
Read the archives.  But because it would break BC (and the orig author likes
the way it workds) it stays unchanged.

As for the new function,If we are creating a new function, we should create
a new one for the NEW behavior.  This is the same thing that happened with
mysql_fetch_array.  At first, it returned an associative array and
mysql_fetch_row returned a numerical array.  Then someone said, I want both
in one call, so, someone decided that mysql_fetch_array should return both.
Well, people complained (me included) and the solution was make it take an
optional param to designate the array type with both being the default.
Now, we all know that assoc should have been the default. So, i wrote
mysql_fetch_assoc, got it commited and never looked back on that one.

Thanks for the time.

Brian Moon
dealnews.com




--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Reduce codebase

2002-12-06 Thread Marcus Börger
At 21:54 06.12.2002, Stig S. Bakken wrote:

--enable-maintainer-mode?

 - Stig



maintainer mode is already coupled to Zend's DEBUG_CFLAGS.
But it is a well known feature of the autoconf tools so the question
is mainly if we require all developers to run maintainer mode before
using that switch in the way described below.

marcus


On Thu, 2002-12-05 at 17:16, Marcus Börger wrote:
 In a discussion about image.c code i was reminded that we do not need
 to bother with emalloc returning NULL or array_init returning FAILURE.
 Unforuately there are hundreds of such cases in PHP. When removing
 all these parts with all the necessary checks and error messages we
 could reduce the code base

 Indeed there is a simple way of doing so for array_init: change those
 functions to be of return type void.

 To make everybodys life easier i suggest we create a new configure
 option --enable-developer or such which simply creates a define
 that allows such changes. I would the like to have --enable-developer
 being a shortcut for --enable-debug also (zts would break some builds
 otherwise that also). When all developers would use this option i
 guess such changes could be done easily and they would not harm
 the normal users.

 marcus


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php