WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • Bug in class.wb.php
  • Print
Pages: [1]   Go Down

Author Topic: Bug in class.wb.php  (Read 4832 times)

anfaenger

  • Guest
Bug in class.wb.php
« on: August 13, 2009, 05:06:26 PM »
Hello alltogether,

I found a "bug" in class.wb.php. (Well, it's not really a bug, but a use of a routine with a high payload because it causes a call of a regex parser where that's not needed.)

In line 219 of class.wb.php the command split() is used to divide a string into an array of strings containing peaces of the original string. split() is used to extract data fields on basis of a regex as delimiter.

A more suitably routine due to better performance to do that job is explode(). The routine splits fields contained in a string on basis of another string (not a regex - a regex won't even work here!!!) and therefore causes no call of a regex parser.

In fact, split() is even marked as deprecated starting with PHP 5.3.0  :-o So using explode() instead of split() will avoid difficulties in future versions of WebsiteBaker or WebsiteBaker installations on servers using PHP 5.3.0.

Regards,
Marcus

(sorry for my... let's call it "rough" english, but I'm a little bit out of training...)
Logged

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • Gender: Male
Re: Bug in class.wb.php
« Reply #1 on: August 13, 2009, 05:38:28 PM »
Pls write a ticket on project page

Dietmar
Logged
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • Bug in class.wb.php
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2